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" ); }
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" ); }
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--------------" ); }
protected virtual void OnAmountExceeded(ExceptionInformationEventArgs e) { TheBalanceIsTooHigh?.Invoke(this, e); }