Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

MVP examples for Windows Forms

Is there good example code or a test project for explaining the Model–view–presenter (MVP) pattern. There are a lot of explanation links, but I want to have some good example code to show others without reinventing the wheel.

like image 283
leora Avatar asked Oct 09 '08 05:10

leora


People also ask

What is MVP in Winforms?

Introduction. MVP is a user interface architectural pattern engineered that follows the separation of concerns in the presentation logic. It is derived from the MVC design pattern. In MVC, all the presentation logic is moved to the presenter, hence make it suitable for automated unit testing.

What is MVP pattern in C#?

The Model View Presenter (MVP) is a design pattern that is particularly useful for implementing user interfaces in such a way as to decouple the software into separate concerns, such as those intended for data processing and storage (model), business logic, the routing of user commands, etc, thereby making more of your ...

What is MVP design pattern?

MVP is an architecture pattern that you can use to deal with some of the shortcomings of MVC, and is a good alternative architecture. It provides an easy way to think about the structure of your app. It provides modularity, testability and, in general, a more clean and maintainable codebase.

Are Windows Forms worth learning?

If your application involves much media types then WPF is a great platform to use. If you want to create a skinned user interface, dynamically load some areas of the UI from a web service, bind to XML or want to develop a desktop application which has the web-like navigation style, then WPF is a great choice.


1 Answers

Jeremy Miller's "Build your own CAB" series is fantastic. You get a nice dose of MVP (along with some other smart client patterns such as Pub/Sub).

http://codebetter.com/blogs/jeremy.miller/archive/2007/07/25/the-build-your-own-cab-series-table-of-contents.aspx

like image 154
Ben Scheirman Avatar answered Sep 23 '22 01:09

Ben Scheirman