protected virtual void OnOverdrawn(OverdrawnEventArgs args) { if (Overdrawn != null) { Overdrawn(this, args); } }
public static void AccountLimitErrors2(object sender, OverdrawnEventArgs e) { Console.WriteLine($"{e.Text} in function 2 Current : {e.CurrentBalance:C} TXN : {e.TransactionAmount:C}", Color.Red); }