Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No code example. #1055

Open
tutiplain opened this issue May 1, 2021 · 3 comments
Open

No code example. #1055

tutiplain opened this issue May 1, 2021 · 3 comments
Labels
doc-enhancement Improve the current content [org][type][category] dotnet-framework/svc Pri2 Medium priority winforms/subsvc

Comments

@tutiplain
Copy link

A code example would be nice.


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

@dotnet-bot dotnet-bot added the ⌚ Not Triaged Not triaged label May 1, 2021
@tutiplain tutiplain changed the title No code example, just theory, useless theory No code example. May 1, 2021
@adegeo
Copy link
Contributor

adegeo commented May 3, 2021

@tutiplain Hi there. Thank you for the feedback. At this moment we're not really updating documentation in the .NET Framework space. We're currently working on updating things for the .NET 5 (.NET Core) area, however, WinForms has been on pause while we got the WPF area started. We'll probably start working on WinForms again this month though.

I need to go through and really write up the migration plan for WinForms, as I did for WPF. As part of that plan, I'll note this issue. I'll keep this issue open until I do. Thank you again for the feedback!


I wanted to add that I think these articles were really written with the idea that you drag-drop this component into your form through the editor, and then use the wizards provided to configure it. This is probably why there aren't any code examples provided. 😦

@adegeo adegeo added the doc-enhancement Improve the current content [org][type][category] label May 3, 2021
@dotnet-bot dotnet-bot removed the ⌚ Not Triaged Not triaged label May 3, 2021
@tutiplain
Copy link
Author

I was actually looking to use the BindingSource component to tie a repository class that internally uses EntityFramework 6 to retrieve and write data. The wizards are not really much help with that. I did learn from this document that I need to either implement the IList interface or the IEnumerable interface (and this last one also requires another implementation of IEnumerator). This seemed like a lot of boilerplate code for what I wanted to do, and without an example to work with I wasn't even sure it was going to work, so I decided to implement record navigation directly in my form, but that also hasn't worked out well. I think I might skip the record navigation feature of the app I'm creating and just have the user do a search on another form.

@adegeo
Copy link
Contributor

adegeo commented May 4, 2021

Hi @tutiplain There are many different types that implement IList or IEnumerable, such as the List<> type. I would assume you could use one of those collection types instead of implementing your own.

When we get to porting this content for .NET 5+, we'll have more code examples. Sorry about that.

@adegeo adegeo added doc-enhancement Improve the current content [org][type][category] and removed doc-enhancement Improve the current content [org][type][category] labels Jun 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
doc-enhancement Improve the current content [org][type][category] dotnet-framework/svc Pri2 Medium priority winforms/subsvc
Projects
None yet
Development

No branches or pull requests

4 participants