Exemplo n.º 1
0
 private void WithDraw_Click(object sender, RoutedEventArgs e)
 {
     if (MessageBox.Show($"Вы уверены, что хотите вывести? Вы выведите {curSum.Text}$",
                         "Вы уверены?", MessageBoxButton.YesNo) == MessageBoxResult.Yes)
     {
         OnWithdraw?.Invoke(int.Parse(curSum.Text));
     }
 }
Exemplo n.º 2
0
        public void Withdraw(int sum)
        {
            this.Amount -= sum;

            var eventArgs = new AccountEventArgs($"Withdraw from account {sum}$", sum, Amount, DateTime.Now);

            OnWithdraw?.Invoke(this, eventArgs);
        }
Exemplo n.º 3
0
 void Withdraw(string Address, decimal Amount)
 {
     OnWithdraw?.Invoke(this, new WithdrawEventArgs {
         Address = Address, Amount = Amount
     });
 }