public void PrintAMessage(object sender, ExceptionInformationEventArgs e)
 {
     Console.WriteLine
     (
         "I am Accounting Clerk and I'm going to report" +
         " to the CFO the details" +
         " Of the client who exceeded!\n"
     );
 }
示例#2
0
 public void PrintAMessage(object sender, ExceptionInformationEventArgs e)
 {
     Console.WriteLine
     (
         "I am Customer Service and I'm going to call the customer" +
         " to make sure his phone line" +
         " is not being misused.\n"
     );
 }
示例#3
0
 public void PrintExceptionalCustomerInformation(object sender, ExceptionInformationEventArgs e)
 {
     Console.WriteLine
     (
         "Customer balance reached unreasonable limit: 10,000 shekels!"
         + "\nThe costumer name: " + e._name
         + "\nThe costumer balance: " + (e._balance + e._amount)
         + "\n--------------"
     );
 }
示例#4
0
 protected virtual void OnAmountExceeded(ExceptionInformationEventArgs e)
 {
     TheBalanceIsTooHigh?.Invoke(this, e);
 }