Esempio n. 1
0
 public CashIn(ATM aTM, ChooseAction first)
 {
     InitializeComponent();
     totalSpaceInATM           = aTM.maxQuantityofBankNotes - aTM.currentQuantityOfBankNotes;
     labelTotalSpaceInATM.Text = Convert.ToString(totalSpaceInATM);
     this.aTM          = aTM;
     this.chooseAction = first;
 }
Esempio n. 2
0
 public CashOut(ATM aTM, int sum, ChooseAction chooseAction)
 {
     InitializeComponent();
     this.aTM          = aTM;
     this.chooseAction = chooseAction;
     this.sum          = sum;
     CalculateAndUpdateAvailableBankNotesToGive(sum, aTM.GetQuantityOfBankNotes());
     UpdateQuantityOfBankNotesInATM();
 }