protected virtual void OnOverdrawnevent(OverdrawnEventArgs args) { if (Overdrawn != null) { Overdrawn(this, args); } }
private void Account_Overdrawn(Object sender, OverdrawnEventArgs e) { if (!e.isOverDrawnAllowed) { e.isOverDrawnAllowed = MessageBox.Show("overdrawn", "Allow Overdrawn", MessageBoxButtons.YesNo) == DialogResult.Yes; } }