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