private void backBtn_Click(object sender, EventArgs e) { DoctorList dl = new DoctorList(location); dl.Visible = true; this.Visible = false; }
private void button1_Click(object sender, EventArgs e) { try { gettext = comboBox1.SelectedItem.ToString(); DoctorList dl = new DoctorList(gettext); this.Visible = false; dl.Visible = true; } catch (Exception ex) { MessageBox.Show("Select one Area!!!"); } }