コード例 #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;
 }
コード例 #2
0
ファイル: CashOut.cs プロジェクト: testforbelousovg/Csharp
 public CashOut(ATM aTM, int sum, ChooseAction chooseAction)
 {
     InitializeComponent();
     this.aTM          = aTM;
     this.chooseAction = chooseAction;
     this.sum          = sum;
     CalculateAndUpdateAvailableBankNotesToGive(sum, aTM.GetQuantityOfBankNotes());
     UpdateQuantityOfBankNotesInATM();
 }