private void R1NextB_Click(object sender, System.EventArgs e) { if (PNameTB.Text != "" && ((MaleRB.Checked == true) || (FemaleRB.Checked == true)) && PMobileNo.Text != "" && PEmail.Text != "") { if (MaleRB.Checked == true) { Male = true; } if (FemaleRB.Checked == true) { Male = false; } if (SC.Step2(PNameTB.Text, PDOB, Male, PMobileNo.Text, PEmail.Text)) { Registration1.Visible = false; Registration4.Visible = false; Registration2.Visible = false; Registration3.Visible = true; } } }