private void btnWithdraw_Click(object sender, EventArgs e) { ProxyAccount temp = (ProxyAccount)cbAccounts.SelectedItem; temp.withdraw(Double.Parse(tbAmount.Text)); displayBalance(temp); }
private void btnAddAccount_Click(object sender, EventArgs e) { ProxyAccount newAccount = new ProxyAccount(Double.Parse(tbLimit.Text), tbName.Text); account.Add(newAccount); cbAccounts.Items.Add(newAccount); }
private void displayBalance(ProxyAccount temp) { lblAccountInfo.Text = temp.ToString() + " has a total of $" + temp.getBalance(); }