Exemplo n.º 1
0
    public static void DoWithdraw(Account account)
    {
        Console.WriteLine("How much you would like to withdraw?");
        Withdraw withdraw = new Withdraw(account, Convert.ToDecimal(Console.ReadLine()));

        withdraw.Execute();
        withdraw.Print();
    }
Exemplo n.º 2
0
 public void Print()
 {
     if (Success)
     {
         Console.WriteLine("Transferred $ " + _amount + " from Jake's Account to Landy's Account");
         Console.Write("    ");
         _theWithdraw.Print();
         Console.Write("    ");
         _theDeposit.Print();
     }
     else
     {
         Console.WriteLine("Sorry, you transaction was unsucced");
     }
 }