コード例 #1
0
 // Raise the Overdrawn event.
 protected virtual void OnOverdrawn(OverdrawnEventArgs args)
 {
     if (Overdrawn != null)
     {
         Overdrawn(this, args);
     }
 }
コード例 #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);
 }
コード例 #3
0
ファイル: Form1.cs プロジェクト: HyoilBae/C_Sharp_Studying
        // 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);
        }
コード例 #4
0
 // Raise the Overdrawn event.
 protected virtual void OnOverdrawn(OverdrawnEventArgs args)
 {
     if (Overdrawn != null) Overdrawn(this, args);
 }