Exemple #1
0
 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
 }
Exemple #2
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();
        }
Exemple #3
0
 private void closeAmountToWithdrawButton_Click(object sender, EventArgs e)
 {
     numToWithdraw = 0;
     AmounfOf20sToWithdrawLabel.Text = 0.ToString();
     WithdrawPanel.Hide();
 }
Exemple #4
0
 private void withdrawButton_Click(object sender, EventArgs e)
 {
     WithdrawPanel.Show();
 }