CommandHandler, where?

Topics: CAB & Smart Client Software Factory
Mar 28, 2007 at 7:45 AM

I'm having doubts about where to place a CommandHandler method. I'm try to explain my scenario.

I have a module, wich has a view, and inside that view I have a panel wich I want to show/hide. For this action I have a button in this view wich shows/hides that panel, and, in ModuleController.ExtendToolStrip I add a toolstripbutton to the ToolBar (using UIExtension Sites) for the same purpouse. So I want to attach the same CommandHandler for both buttos (Toolbar and View).

Where I have to place the CommandHandler method? In ModuleController, ViewPresenter, View??? I'm not sure how to focus this.

Thanks a lot for your attention.

Greetings and Regards.