Friday, July 3, 2009

Model View Presenter

Introduction and Goal

In this article we will understand MVP, execute a sample project with MVP, implement the same using windows UI and then finally we will discuss about the differences between MVP and MVC.

For past some days I have been writing and recording videos in design patterns, UML , FPA , Enterprise blocks and lot you can watch the videos at

You can download my 400 .NET FAQ EBook from


This article assumes you know MVC in case not you can read about the same at

The simple stock project

The best ways to understand any architectural concept is by taking a small practical sample and then apply fundamentals on the same. So let’s first discuss a simple scenario and then let’s think how MVP fits in to the same. Below is a pictorial representation of a simple stock project. We can increase the stock value and decrease the stock value. Depending on the stock can have three status overstocked, under stocked or optimally stocked.

We have three scenarios depending on which the UI will change color.

See full detail: