Пример #1
0
 public Withdrawal(int userAccountNumber, Screen atmScreen, BankDatabase atmBankDatabase, Keypad atmKeypad, CashDispenser atmCashDispenser, bool withdrawStatus)
     : base(userAccountNumber, atmScreen, atmBankDatabase)
 {
     keypad               = atmKeypad;
     cashDispenser        = atmCashDispenser;
     screen               = atmScreen;
     accountNumber        = userAccountNumber;
     bankDatabase         = atmBankDatabase;
     processingWithdrawal = withdrawStatus;
 }
Пример #2
0
 //five-parameter constructor
 public Deposit(int userAccountNumber, Screen atmScreen, BankDatabase atmBankDatabase, Keypad atmKeypad, DepositSlot atmDepositSlot, bool depositStatus)
     : base(userAccountNumber, atmScreen, atmBankDatabase)
 {
     keypad            = atmKeypad;
     depositSlot       = atmDepositSlot;
     bankDatabase      = atmBankDatabase;
     accountNumber     = userAccountNumber;
     processingDeposit = depositStatus;
     screen            = atmScreen;
 }
Пример #3
0
 public Form1()
 {
     InitializeComponent();
     bankDatabase  = new BankDatabase();
     cashDispenser = new CashDispenser();
     depositSlot   = new DepositSlot();
     screen        = new Screen(displayScreen);
     keypad        = new Keypad(customerInput);
     depositSlotLabel.ForeColor   = Color.Gray;
     cashDispenserLabel.ForeColor = Color.Gray;
 }
Пример #4
0
 public Transaction(int userAccount, Screen theScreen, BankDatabase theDatabase)
 {
     accountNumber = userAccount;
     userScreen    = theScreen;
     database      = theDatabase;
 }
Пример #5
0
 //five-parameter constructor
 public BalanceInquiry(int userAccountNumber, Screen atmScreen, BankDatabase atmBankDatabase) : base(userAccountNumber, atmScreen, atmBankDatabase)
 {
 }