Some architectural advice on various methods of using WinForms
Posted on 2008-11-13
I am reviewing my own code to see where I could have done things better. I have built many dialogs which get an object passed in as a parameter, to the contructor. Then in the Load function, I assign values to the various controls by accessing properties on the object. Once the user closes the dialog, I read the contents of the control then pass the values to the properties of the object.
Using standard .NET Framework 2.0, what better ways are there for this interrelationship to exist?
How about .NET Framework 3.5?
And lastly, wouldn't the MVC Framework change this relationship fundamentally? How does one use the MVC Framework with Windows, and would it still be with WinForms? Is MFP a better choice with MVC?
Thanks for the help. I'm trying to upgrade my skills to try and keep up with Microsoft!