I have several instances where I wire up an event handler like this:
// Instantiate object
childClass parentObject = new childClass();
// Wire up event
parentObject.SomeChildEvent += new EventHandler(ParentEventHandler);
What I'm wondering though is if there's a way with dotNet 1.1 for me to
somehow pass the necessary information contained in the 2nd line of code to a
separate class and have the wiring occur there? This would mean that if the
event is fired it'll still be handled by 'ParentEventHandler' in the parent
class.
I tried experimenting with delegates to do this but just couldn't figure it
out. Is it possible to do?
--
Robert W.
Vancouver, BC
www.mwtech.com