Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sample MVC / MVP winforms Application (Non Trivial)

I'm looking for a non-trivial example of MVC/MVP implemented in Winforms (C# .NET). I searched the website but getting only trivial examples, a little more would be helpful.

I'm Particularly looking at ways to implement views (view for a master-child model) and controllers/presenters.

like image 302
The King Avatar asked Oct 06 '10 15:10

The King


2 Answers

I was working on windows form project (the project is using third party winform library not compatile with wpf) and searching for mvp best practice for winform; I found Mini SQL Query at codeplex: http://minisqlquery.codeplex.com/

this covers winform, mvp, dependency injection with castle windsor, weifen luo docking suite, command pattern, etc

so far this is best real working winform mvp sample for me(not too complex once you know how the components interconnected)

ps: the castle library used is version 2.5 so if you upgrade to version 3 this project won't compile

application screenshot

like image 173
kite Avatar answered Oct 11 '22 14:10

kite


Have a look at Koossery.MVCWin. It has links to some tutorials that should provide some sample applications. In addition, it's an actual MVC framework, so it might help you get there faster.

http://koosserymvcwin.codeplex.com/

Also have a look at MVCSharp.

http://mvcsharp.org/

like image 26
Robert Harvey Avatar answered Oct 11 '22 15:10

Robert Harvey