private void registerToolStripMenuItem1_Click(object sender, EventArgs e) { using (PatientRegistration form = new PatientRegistration()) { DialogResult dr = form.ShowDialog(); if (dr == DialogResult.OK) { } } }
private void label4_Click(object sender, EventArgs e) { using (PatientRegistration form = new PatientRegistration()) { // DentalDialog form1 = new DentalDialog(item.Text, TransactorID); DialogResult dr = form.ShowDialog(); if (dr == DialogResult.OK) { // MessageBox.Show(form.state); } } }