private void btnAddCustomer_Click(object sender, EventArgs e) { if ((tbCustomerID.Text == null) || (tbPIN.Text == null) || (tbFirstName.Text == null) || (tbLastName.Text == null) || (tbCountryCode.Text == null) || (tbAreaCode.Text == null) || (tbFirstThree.Text == null) || (tbLastFour.Text == null) || (tbEmail.Text == null) || (tbAptNum.Text == null) || (tbBuildingNum.Text == null) || (tbStreet.Text == null) || (tbCity.Text == null) || (cbProvince.SelectedIndex == -1) || (tbPostalCode.Text == null) || (tbCountry.Text == null) || (cbCreditCard.SelectedIndex == -1) || ((cbCreditCard.SelectedIndex == 0) && (tbCreditLimit.Text == null)) || (tbStartingChecking.Text == null) || (tbStartingSaving.Text == null) || (tbDateDD.Text == null) || (tbDateMM.Text == null) || (tbDateYYYY.Text == null)) { MessageBox.Show("Please fill out all fields to add customer into the database", "Empty Fields", MessageBoxButtons.OK, MessageBoxIcon.Stop); } else { AddCustomer(); CustomerDB.SaveDatabase(); LoginInformation.SaveLoginInformation(); ClearFields(); } }