Join Anton Delsink for an in-depth discussion in this video Adding and organizing forms, part of Object Oriented Programming with C#.
- [Narrator] Now that we have made the conscious decision…to separate the model from the view,…in this case, the user info object with our data,…from the Form class, and the Form 1 object,…we can continue this pattern and create as many stages…or steps in this wizard as we choose.…So let's just quickly move where our…Form 1 is saved at the moment.…So in your project, Form 1 was saved by default,…and when I click and drag it into the View folder,…click okay,…and so you can see Model is under the Model folder,…our UserInfo object, and under the View we now have Form 1.…
So Form 1, the designer's still working for us.…Double click to see the designer.…I'm just going to right click and rename.…I'll call it FirstForm, we're going to look at the code,…let's rename the class itself, Ctrl + R for refactor,…and R again for rename, call it FirstForm, press Enter.…It'll be updated throughout all of our code.…And double check in the Program.cs,…so there we see FirstForm.…So let's just double click FirstForm,…and put some basic controls onto it.…
- Abstract classes
- Processing text with StreamReader
- IEnumerable and yield return
- Windows Forms controls
- Windows Forms with and without the designer
- Adding, organizing, and testing forms
- Creating classes
Skill Level Intermediate
C# Object-Oriented Programming Tips and Trickswith Jesse Freeman58m 39s Intermediate
What you should know1m 10s
1. Theory vs. Practice
2. Examples from .NET
3. Examples from Windows UI
4. Examples from Board Games
5. Examples from the Web
Next steps1m 13s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.