I have a assembly from a third party that exposes an Event
I want to Trap the event and tie to a Method in a Class where I am consuming
their assembly. The class is actually a UserControl
How can I tie OnSettingsModif ied from the assembly to Method
Configuration_O nValid in my class ????
Thanks
Third Party App
============
public interface ISettings
{
event EventHandler OnSettingsModif ied;
}
public Class Settings: ISettings
{
private void textEdit_EditVa lueChanged(obje ct sender, EventArgs e)
{
if (OnSettingsModi fied != null)
{
OnSettingsModif ied.Invoke(send er, e);
}
}
}
My App
======
Settings mySettings - new Settings();
private void Configuration_O nValid(object sender, System.EventArg s e)
{
UpdateEnableSav e();
}
I want to Trap the event and tie to a Method in a Class where I am consuming
their assembly. The class is actually a UserControl
How can I tie OnSettingsModif ied from the assembly to Method
Configuration_O nValid in my class ????
Thanks
Third Party App
============
public interface ISettings
{
event EventHandler OnSettingsModif ied;
}
public Class Settings: ISettings
{
private void textEdit_EditVa lueChanged(obje ct sender, EventArgs e)
{
if (OnSettingsModi fied != null)
{
OnSettingsModif ied.Invoke(send er, e);
}
}
}
My App
======
Settings mySettings - new Settings();
private void Configuration_O nValid(object sender, System.EventArg s e)
{
UpdateEnableSav e();
}
Comment