private void R3CompleteB_Click(object sender, System.EventArgs e) { if (DYRB.Checked == true) { Diabetes = true; } else if (DNRB.Checked == true) { Diabetes = false; } if (BloodPressureYRB.Checked == true) { BP = true; } if (BloodPressureNRB.Checked == true) { BP = false; } if (SC.Step4(BloodGroupCB.SelectedText, Diabetes, DiabetesYTB.Text, BP, BloodPressureYTB.Text)) { MessageBox.Show("JUIHBI"); Registration1.Visible = false; Registration3.Visible = false; Registration2.Visible = false; Registration4.Visible = true; } }