protected virtual void RaiseOnHover(MyEventsClass e) { if (EventOnHover != null) { EventOnHover(this, e); } }
public virtual void RaiseOnClick(MyEventsClass e) { if (buttonClick != null) { buttonClick(this, e); } }
void btn_EventOnHover(object sender, MyEventsClass e) { Console.WriteLine(e.ButtonName); Console.WriteLine(e.Sender); }
void btn_buttonClick(object sender, MyEventsClass e) { Console.WriteLine("Button click event called"); Console.WriteLine(e.Sender); Console.WriteLine(e.ButtonName); }
public override void RaiseOnClick(MyEventsClass e) { Console.WriteLine("MBtn Class called this event"); Console.WriteLine(e.ButtonName); Console.WriteLine(e.Sender); }