예제 #1
0
 public void CheckBalance(int x)
 {
     if (x > 250)
     {
         EventArgsClass eac = new EventArgsClass($"Balance Exceeds {x}.");
         evt(this, eac);
     }
 }
예제 #2
0
 public void HandleTheEvent(object sender, EventArgsClass e)
 {
     Console.WriteLine($"Attention from {sender} alerts: {e.Message}");
 }