예제 #1
0
        private void UIWithdraw()
        {
            Console.Write("How much will you be withdrawing?\n$");
            decimal withdrawl = decimal.Parse(Console.ReadLine());

            _invoker.Withdraw(withdrawl);
        }
예제 #2
0
 //-- Calls the Invoker method Withdraw() that calls the ConcreteCommand Withdraw
 public void DoWithdraw()
 {
     Console.Write("How much is being withdrawn?\n$");
     _withdraw = new WithdrawCommand(_account, GetValue(), _transactionCount);
     _invoker.WithdrawCommand = _withdraw;
     _invoker.Withdraw();
     _transactionCount = _invoker.TransactionHistory.Count + 1;
 }