for developing a application in C# windows application which one is better MVC or creating class file for each form
-
3Not sure if you're asking the right question. In general, when you use Forms for UI, you will end up with a class for each form. If you choose to do MVC with Forms, the Form is how you implemented the "V" (View) -- so its not that you're choosing one or the other.Nader Shirazie– Nader Shirazie2010-06-12 06:27:55 +00:00Commented Jun 12, 2010 at 6:27
2 Answers
Right now the suggested direction for a Windows application would be WPF using the MVVM patern (Model, View, View Model). There seems to be a good match between WPF and use of a View Model by way of declarative binding and other nice stuff.
There are articles here: http://karlshifflett.wordpress.com/mvvm/ that should point you in the right direction plus stuff on Channel9 and elsewhere.
Comments
If you are using WPF, ModeL View Presenter (variation of mvc) is the best choice. In case of Windows Forms MVC is unnatural but still you can emulate it partially with this technology.