private void WithdrawConfirmationButton_Click(object sender, EventArgs e) { if (numToWithdraw != 0) { Withdraw(numToWithdraw, this.instanceAccount); numToWithdraw = 0; unselectAllWithdrawRadioButtons(); AmounfOf20sToWithdrawLabel.Text = 0.ToString(); WithdrawPanel.Hide(); } //Does nothing if submit 0 }
public MainMenu(Account account, ATM atm, Login login) { InitializeComponent(); this.accountList = atm.GetDatabase(); this.instanceAccount = account; this.login = login; this.atm = atm; userNameLabel.Text = this.instanceAccount.CardNum; WithdrawPanel.Hide(); depositPanel.Hide(); checkBalancePanel.Hide(); numToWithdraw = 0; disableWithdrawButtons(); }
private void closeAmountToWithdrawButton_Click(object sender, EventArgs e) { numToWithdraw = 0; AmounfOf20sToWithdrawLabel.Text = 0.ToString(); WithdrawPanel.Hide(); }