In my applications I like to use model, view, controller designs.
Many of my views are embedded into a subclass of WebContainer. MyWebContainer.
I’m having some architectural issues when MyView (another subclass of WebContainer) wants to raise an event such that the parent receives it.
I haven’t done this in a while but I believe it was accomplished by the parent calling AddHandler before embedding the object and calling RemoveHandler before closing the control.
Is this still the recommended way of doing things?
Can I do this without events by defining a class interface and assigning a delegate?
So that the child simply calls a method that is implemented in the delegate?