The Artima Developer Community
Sponsored Link

.NET Buzz Forum
A Model, a view, and a presenter walk into a bar...

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Udi Dahan

Posts: 882
Nickname: udidahan
Registered: Nov, 2003

Udi Dahan is The Software Simplist
A Model, a view, and a presenter walk into a bar... Posted: Mar 1, 2006 4:37 PM
Reply to this message Reply

This post originated from an RSS feed registered with .NET Buzz by Udi Dahan.
Original Post: A Model, a view, and a presenter walk into a bar...
Feed Title: Udi Dahan - The Software Simplist
Feed URL: http://feeds.feedburner.com/UdiDahan-TheSoftwareSimplist
Feed Description: I am a software simplist. I make this beast of architecting, analysing, designing, developing, testing, managing, deploying software systems simple. This blog is about how I do it.
Latest .NET Buzz Posts
Latest .NET Buzz Posts by Udi Dahan
Latest Posts From Udi Dahan - The Software Simplist

Advertisement
I've been a proponent of MVP style UIs for some time. Most projects I'm "evangelizing" it to get it pretty quickly - except for how to handle application startup. So, I put together a little sample (with VS2005 beta 2 - don't ask) to demonstrate.

The idea is simple, the problematic main form becomes just a shell which views are loaded into. Microsoft's smart client baseline toolkit has one built in already (and I suggest you look into it). But, to keep things simple, I've create my own shell. The sample also uses Spring for dependency injection. I'll explain that a bit:

In order to keep the presenter independent of the view (winforms) implementation, we have an interface that separates them in a different package. So, since the presenter may still need to instantiate a new view at runtime, we use the abstract factory in Spring.

Download the example here.

Read: A Model, a view, and a presenter walk into a bar...

Topic: Using TypeMock.NET to mock a external dependency Previous Topic   Next Topic Topic: Test List and Naming Test

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use