Пример #1
0
 protected virtual void RaiseOnHover(MyEventsClass e)
 {
     if (EventOnHover != null)
     {
         EventOnHover(this, e);
     }
 }
Пример #2
0
 public virtual void RaiseOnClick(MyEventsClass e)
 {
     if (buttonClick != null)
     {
         buttonClick(this, e);
     }
 }
Пример #3
0
 void btn_EventOnHover(object sender, MyEventsClass e)
 {
     Console.WriteLine(e.ButtonName);
     Console.WriteLine(e.Sender);
 }
Пример #4
0
 void btn_buttonClick(object sender, MyEventsClass e)
 {
     Console.WriteLine("Button click event called");
     Console.WriteLine(e.Sender);
     Console.WriteLine(e.ButtonName);
 }
Пример #5
0
 public override void RaiseOnClick(MyEventsClass e)
 {
     Console.WriteLine("MBtn Class called this event");
     Console.WriteLine(e.ButtonName);
     Console.WriteLine(e.Sender);
 }