title: Simple Bank application in C#
body: <p>i want to create a simple bank application form. This form is going to hold an array of 19 accounts objects. When the the user click the create button it create an account with an accountID and opening amount. When enter a an accountID and amount and click the deposit button it deposit money to that specific accountid. When the withdraw button is click it withdraws money from a specific account , when the accountid is specific. The balancebutton click gives you the balance of an account, when the accountid is specific.</p>
  
  <p>here is my code..</p>
  
  <pre><code>public class Accounts
  { 
  
      public int AccountId { get; set; }
      public decimal Balance { get; set; }
  
  
  
      public decimal Deposit(decimal amount)
      {
          Balance += amount;
          return Balance;
      }
  
      public void Withdraw(decimal amount)
      {
          Balance -= amount;
      }
  }
  </code></pre>
  
  <p>Here is code for the Form:</p>
  
  <pre><code>using System.Windows.Forms;
  namespace Bank
  {
  public partial class Bank : Form
  {
      public Bank()
      {
          InitializeComponent();
  
      }
  
      Accounts[] arrayAccounts = new Accounts[19];
  
      decimal balance;
  
      private void createAccountButton_Click(object sender, EventArgs e)
      {
          for (int i = 0; i &lt; arrayAccounts.Length; i++)
          {
              arrayAccounts[i] = new Accounts();
          }
  
  
  
          double amount = Convert.ToDouble(amountTextBox.Text);
          int AccountId = Convert.ToInt32(accountIDTexTBox.Text);
          OutPutLabel.Text = "Account #" + AccountId + "Opened with Balance of $" + amount;
  
  
      }
      private void DepositRadioButton_CheckedChanged(object sender, EventArgs e)
      {
          double amount ;
  
  
      }
  
      private void WithdrawRadioButton_CheckedChanged(object sender, EventArgs e)
      {
          double amount;
  
      }
  
      private void exceuteButton_Click(object sender, EventArgs e)
      {
  
  
      }
  
      private void amountTextBox_TextChanged(object sender, EventArgs e)
      {
  
      }
  
      private void balanceRadioButton_CheckedChanged(object sender, EventArgs e)
      {
  
      }
  }
  }
  </code></pre>
  
  <p>I really need help passing the accountid and amount into the array of objects. And writing the code for the depositButton , withdrwbutton and BalanceButton.</p>