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; }
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; }