コード例 #1
0
        private void btnWithdraw_Click(object sender, EventArgs e)
        {
            ProxyAccount temp = (ProxyAccount)cbAccounts.SelectedItem;

            temp.withdraw(Double.Parse(tbAmount.Text));
            displayBalance(temp);
        }
コード例 #2
0
        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);
        }
コード例 #3
0
 private void displayBalance(ProxyAccount temp)
 {
     lblAccountInfo.Text = temp.ToString() + " has a total of $" + temp.getBalance();
 }