private void SubmitBtn_Click(object sender, EventArgs e)
 {
     int routingNum;
     // Perform validity checks on bank data
     if (!ManageBank.validateBank(BankNameTxtBox.Text, BankAddressTxtBox.Text))
     {
         return;
     }
     if (!Int32.TryParse(RoutingNumTxtBox.Text, out routingNum))
     {
         MessageBox.Show("Please give a valid routing number.", "Error", MessageBoxButtons.OK, MessageBoxIcon.Exclamation, MessageBoxDefaultButton.Button1);
         return;
     }
     if (Bounced_Check_Manager_Data_Layer.BankDAO.find(routingNum) != null)
     {
         MessageBox.Show("Bank with routing number " + routingNum.ToString() + " already exists.", "Error", MessageBoxButtons.OK, MessageBoxIcon.Exclamation, MessageBoxDefaultButton.Button1);
         return;
     }
     // Generate bank
     Bank bank = new Bank();
     bank.BankRoutingNum = routingNum;
     bank.BankName = BankNameTxtBox.Text;
     bank.BankAddress = BankAddressTxtBox.Text;
     // Submit store
     if (Bounced_Check_Manager_Data_Layer.BankDAO.create(bank))
     {
         this.Close();
     }
     else
     {
         MessageBox.Show("Bank Creation failed at database.", "Error", MessageBoxButtons.OK, MessageBoxIcon.Exclamation, MessageBoxDefaultButton.Button1);
     }
 }
 public ModifyBank(Bank new_bank)
 {
     InitializeComponent();
     bank = new_bank;
     RoutingNumTxtBox.Text = bank.BankRoutingNum.ToString();
     BankNameTxtBox.Text = bank.BankName.ToString();
     BankAddressTxtBox.Text = bank.BankAddress.ToString();
 }
 partial void DeleteBank(Bank instance);
 partial void UpdateBank(Bank instance);
 partial void InsertBank(Bank instance);