Пример #1
0
        public void ProcessChoice(string Choice)
        {
            switch (Choice)
            {
            case "1":
                var depositWF = new DepositWorkFlow();
                depositWF.Execute(_currentAccount);
                PrintAccountInformation(_currentAccount);
                DisplayAccountMenu();
                break;

            case "2":
                var withdrawWF = new WithdrawWorkFlow();
                withdrawWF.Execute(_currentAccount);
                PrintAccountInformation(_currentAccount);
                DisplayAccountMenu();
                break;

            case "3":
                var transferWF = new TransferWorkFlow();
                transferWF.Execute(_currentAccount);
                PrintAccountInformation(_currentAccount);
                DisplayAccountMenu();
                break;

            default:
                Console.WriteLine("Invalid Entry...");
                Console.WriteLine("Press Enter to continue...");
                Console.ReadLine();
                break;
            }
        }
Пример #2
0
 public void ProcessChoice(string Choice)
 {
     switch (Choice)
     {
         case "1":
             var depositWF = new DepositWorkFlow();
             depositWF.Execute(_currentAccount);
             PrintAccountInformation(_currentAccount);
             DisplayAccountMenu();
             break;
         case "2":
             var withdrawWF = new WithdrawWorkFlow();
             withdrawWF.Execute(_currentAccount);
             PrintAccountInformation(_currentAccount);
             DisplayAccountMenu();
             break;
         case "3":
             var transferWF = new TransferWorkFlow();
             transferWF.Execute(_currentAccount);
             PrintAccountInformation(_currentAccount);
             DisplayAccountMenu();
             break;
         default:
             Console.WriteLine("Invalid Entry...");
             Console.WriteLine("Press Enter to continue...");
             Console.ReadLine();
             break;
     }
 }