V
Vadim Berezniker
Let's say I have a base class BaseClass that defines an event
'ValueChanged' and then I have inherited classes that have specific
'SomeValueChanged', 'SomeOtherValueChanged' events.
I want to have 'ValueChanged' fired every time one of the value change
event fires in the subclasses. My first thought was to have a method in
the base class that would take a reference to an event as a parameter
and then connect that event with a handler that would then fire the
ValueChanged event. Instead, now I connect the event in the subclasses
which felt like a less "cleaner" way to accomplish this. I wanted the
base class to actually connect the event to its handler. Is there any
way to achieve this?
'ValueChanged' and then I have inherited classes that have specific
'SomeValueChanged', 'SomeOtherValueChanged' events.
I want to have 'ValueChanged' fired every time one of the value change
event fires in the subclasses. My first thought was to have a method in
the base class that would take a reference to an event as a parameter
and then connect that event with a handler that would then fire the
ValueChanged event. Instead, now I connect the event in the subclasses
which felt like a less "cleaner" way to accomplish this. I wanted the
base class to actually connect the event to its handler. Is there any
way to achieve this?