39

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.

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
leora
  • 188,729
  • 360
  • 878
  • 1,366

2 Answers2

24

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

Ben Scheirman
  • 40,531
  • 21
  • 102
  • 137
  • 1
    I found [buildyourowncab](https://code.google.com/p/buildyourowncab/) at code.google.com. It looks like the sourcecode to the article Build your own CAB by jeremy miller. – surfmuggle Sep 02 '13 at 20:29
  • 3
    The series link is dead as of April 2017 but I found a copy at https://web.archive.org/web/20160928041924/http://codebetter.com/jeremymiller/2007/07/26/the-build-your-own-cab-series-table-of-contents/ – James Allman Apr 04 '17 at 16:35
1

You may want to try the Claymore Framework.

sardokan
  • 11
  • 1