private void btnSubmit_Click(object sender, EventArgs e) { if (txtPassword.Text.Length == 0) { lblPass.ForeColor = System.Drawing.Color.Red; lblPass.Text = "A password is required."; } if (txtAdminEmail.Text.Length == 0) { lblEmailVerify.ForeColor = System.Drawing.Color.Red; lblEmailVerify.Text = "An email is required."; } if (Password_Validated && Email_Validated) { //Get this forms data saved to our school variable. parentForm.school.password = txtPassword.Text; parentForm.school.email = txtAdminEmail.Text; parentForm.school.name = txtSchoolName.Text; parentForm.school.address = txtAddress.Text; parentForm.school.city = txtCity.Text; parentForm.school.state = txtState.Text; parentForm.school.zip = txtZip.Text; Setup2 setup2 = new Setup2(parentForm); setup2.ShowDialog(); this.Close(); } }
private void btnPrevious_Click_1(object sender, EventArgs e) { Setup2 setup2 = new Setup2(parentForm); setup2.ShowDialog(); this.Close(); }