private void startBtn_Click(object sender, EventArgs e) { StopButtonState(true); StartButtonState(false); bankSimulator = new BankSimulator(uiHelper, bankVaultAmount, numberCustomers, numberTellers, custInitialAmount, custGoal, maxTransactionAmount); }
private void btnStart_Click(object sender, EventArgs e) { if (ValidateInputFields()) { if (uiHelper == null) { uiHelper = new UIHelper(this); } //if (bankSimulator == null) //{ //form.bankGroupBox1.Enabled = false; //form.transactionsGroupBox2.Enabled = false; //form.txbxCustGoalAmount.Enabled = false; this.bankSimulator = new BankSimulator(uiHelper, numTellers, numCustomers, custGoalAmount, initialBankVaultBalance, maxTransAmount, custInitialAmount); //} } }