protected virtual void OnOverdrawn(OverdrawnEventArgs args)
 {
     if (Overdrawn != null)
     {
         Overdrawn(this, args);
     }
 }
Beispiel #2
0
 private void MyAccount_Overdrawn(object sender, OverdrawnEventArgs e)
 {
     if (!e.AllowOverdraft)
     {
         e.AllowOverdraft =
             (MessageBox.Show(
                  "New Balance: " + e.NewBalance.ToString("C")
                  + ". Allow change?", "Allow Change?",
                  MessageBoxButtons.YesNo) == DialogResult.Yes);
     }
 }