public void CheckBalance(int x) { if (x > 250) { EvtArgsClass eac = new EvtArgsClass("Balance exceeds over 250..."); evt(this, eac); } else { EvtArgsClass eac = new EvtArgsClass("Balance does not exceed over 250..."); evt(this, eac); } }
public void HandleTheEvent(object sender, EvtArgsClass e) { Console.WriteLine("Attention! " + sender + ": " + e.Message); Console.ReadLine(); }