Ejemplo n.º 1
0
        public override void Execute()
        {
            BankDatabase bankDatabase = base.bankDatabase;
            Screen       screen       = base.screen;

            decimal availableBalance = bankDatabase.getAvailableBalance(AccountNumber);
            decimal totalBalance     = bankDatabase.getTotalBalance(AccountNumber);

            screen.DisplayMessageLine("Balance Information: "
                                      + "\n - Available balance: " + availableBalance
                                      + "\n - Total balance: " + totalBalance);
            Sleep(5000);
        }
Ejemplo n.º 2
0
        public override void Execute()
        {
            BankDatabase bankDatabase = base.BankDatabase;

            decimal availableBalance = bankDatabase.getAvailableBalance(AccountNumber);
            decimal totalBalance     = bankDatabase.getTotalBalance(AccountNumber);

            Screen.DisplayMessageLine("\nBalance Information:");
            Screen.DisplayMessage(" - Available balance: ");
            Screen.DisplayDollarAmount(availableBalance);
            Screen.DisplayMessage("\n - Total balance:     ");
            Screen.DisplayDollarAmount(totalBalance);
            Screen.DisplayMessageLine(string.Empty);

            Sleep(5000);
        }