Working with Presenter

Topics: CAB & Smart Client Software Factory
Aug 24, 2006 at 9:09 PM
originally posted by: nagapraveenn

Hi,

While working with presenter, we are directing our events from the view to the presenter. Do we handle the events in the view only or is it that we handle these events in the WorkItem ????
Aug 25, 2006 at 1:33 PM
originally posted by: askew

Call presenter methods from the Views. A View's event handlers are ok, just call a presenter method to do the work. Keeping processing within the Presenter is the goal, so that you can swap out Views easily, and to test the Presenter methods without a UI (Agile/SCRUM). I think this is what you are wanting. WorkItems are containers, I don't think of them as places for code to live. Perhaps I misunderstand.