Event Publication for subclassed controls

Topics: CAB & Smart Client Software Factory
May 6, 2006 at 3:37 PM
originally posted by: saregama

I'm creating sub-classed controls for common controls like datagrid, combo boxes etc. to implement some custom functionality. These controls are then used to build the smartpart views. I was wondering if it is possible to use the event publication model within these sub-classed controls
May 9, 2006 at 3:47 AM
originally posted by: DLorenz

The only way you would be able to do that is if you added them into some Workitem's Item collection.
May 10, 2006 at 3:22 AM
originally posted by: davidlaribee

I would create the necessary interface to operate on the controls from the cab view/smartpart. We do this in our architecture using MVC:

Controller <- View -> Component 1, Component 2, Component N

(Where "->" is the direction of dependency, e.g. view depends on and calls controller)

We only use the event broker stuff for view-to-view or module-to-module communication.