protected virtual void onMyDel(object o, PrimeEventArgs pe) { if (MyDel != null) { MyDel(o, pe); } }
public void action2(object sender, PrimeEventArgs pe) { System.Console.WriteLine("actioned2"); }
public void action1(object o, PrimeEventArgs pe) { System.Console.WriteLine("actioned1"); }
public void action(object o, PrimeEventArgs pe) { System.Console.WriteLine("Prime number found:" + pe.Prime); }