示例#1
0
 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);
     }
 }
示例#2
0
 public void HandleTheEvent(object sender, EvtArgsClass e)
 {
     Console.WriteLine("Attention! " + sender + ": " + e.Message);
     Console.ReadLine();
 }