Back to list
Views:   9.9K
Replies:  1

MVP pattern for an MDI application

My current application that I maintain is a tabbed MDI-based application that analyzes and graphs data stored in a database. My question is whether or not the MVP is suitable for this type of application. From what I read on MVP, this seems to be the locical choice. The layout for my UI is similar to the one used in the WinForms sample application, except I have comboboxes to query and filter data instead the treeview control. Also, where there are gridview controls I use charts and listview, which are essentially related views.

One question I have what types of patterns to use to handle displaying different toolbars based in the current chart. Also, since I already use an ORM and have no use for WCF Hosting and Services, can I bypass those or do I need my own simplified service layer to get data back and forth to the UI?

Mark Polsen, Jul 15, 2011
Reply 1
MVP is what I'd use. Generally I do:


ASP.Net & WinForms = MVP

Silverlight & WPF = MVVM

For the toolbars, not too sure but seems like you could use a mediator for communicating changes and then possibly and abstract factory for swapping toolbars.

With the ORM, if you aren't going to need to scale to a client server or n-Tier then you can get ride of the service related layers and have your Presentation, BL and DAL all run on one machine. I'd encourage you to put an interface ontop of your BL so that if you need to add a service layer in the future it would be easier to do.
Ryan Andrus, Jul 28, 2011
Stay Inspired!
Join other developers and designers who have already signed up for our mailing list.
Terms     Privacy     Cookies       Do Not Sell       Licensing      
Made with    in Austin, Texas.  - vsn 44.0.0
© Data & Object Factory, LLC.