SpankySpanky
Programmer
I have embarked on my first major project in VB.NET 2003 and I am seeking guidance on how to do the GUI interface.
I am comfortable with the concept of classes now and I have been successfully building some components with classes and my limited understanding of design patterns. I would like to know about the general methodology that OOP programmers use when interfacing a GUI with the remainder of the program logic.
For example, I assume that the GUI is built around the default form you get when you create a project, and that the GUI is treated separate from the main logic, with messages going in between. If I had no further advice I would probably build classes that handle the way the controls work, ie. a listbox of names might have an associated class that handles the data and communicates back and forth with the main program logic.
If I need input into the main program logic from the GUI, I am guessing that I should use function delegates or events eg. to tell main logic classes that a button has been pressed, or that selections have been made etc.
Is this on the right track? What do experienced OO Programmers do?
Thanks for any comments.
I am comfortable with the concept of classes now and I have been successfully building some components with classes and my limited understanding of design patterns. I would like to know about the general methodology that OOP programmers use when interfacing a GUI with the remainder of the program logic.
For example, I assume that the GUI is built around the default form you get when you create a project, and that the GUI is treated separate from the main logic, with messages going in between. If I had no further advice I would probably build classes that handle the way the controls work, ie. a listbox of names might have an associated class that handles the data and communicates back and forth with the main program logic.
If I need input into the main program logic from the GUI, I am guessing that I should use function delegates or events eg. to tell main logic classes that a button has been pressed, or that selections have been made etc.
Is this on the right track? What do experienced OO Programmers do?
Thanks for any comments.