Exemplo n.º 1
0
 // The event handler with event args.
 private void OverdrawnHandler(object sender, OverdrawnEventArgs args)
 {
     string message =
         "The account is overdrawn." + Environment.NewLine +
         "Current Balance: " + args.CurrentBalance.ToString("C") + Environment.NewLine +
         "Debit Amount: " + args.DebitAmount.ToString("C");
     MessageBox.Show(message);
 }
Exemplo n.º 2
0
        // The event handler with event args.
        private void OverdrawnHandler(object sender, OverdrawnEventArgs args)
        {
            string message =
                "The account is overdrawn." + Environment.NewLine +
                "Current Balance: " + args.CurrentBalance.ToString("C") + Environment.NewLine +
                "Debit Amount: " + args.DebitAmount.ToString("C");

            MessageBox.Show(message);
        }