コード例 #1
0
ファイル: Deposit.cs プロジェクト: sbatson5/ATMSimulator
 //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;
 }
コード例 #2
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;
 }