private void buttonManageAccounts_Click(object sender, EventArgs e) { this.Hide(); ManageAccounts newManage = new ManageAccounts(); newManage.Show(); }
private void buttonAddAccount_Click(object sender, EventArgs e) { Boolean enteredIDCorrect = checkEnteredID(); if (enteredIDCorrect != true) { labelError.Text = "Incorrect ID entered. Please try again"; } else { int custID = Int32.Parse(textBoxCustID.Text); if (control.FindCustomer(custID) != null && boxSelected == true) { string boxSelectedName = selectedBox(); if (boxSelectedName != "None") { control.AddAccount(custID, boxSelectedName); this.Hide(); newManage.Show(); } } } }