private void registerToolStripMenuItem_Click(object sender, EventArgs e) { using (PractitionerRegistration form = new PractitionerRegistration()) { // DentalDialog form1 = new DentalDialog(item.Text, TransactorID); DialogResult dr = form.ShowDialog(); if (dr == DialogResult.OK) { } } }
private void button6_Click(object sender, EventArgs e) { if (Branch.ListBranch().Count() < 1) { MessageBox.Show("Please add a branch first"); return; } using (PractitionerRegistration form = new PractitionerRegistration()) { // DentalDialog form1 = new DentalDialog(item.Text, TransactorID); DialogResult dr = form.ShowDialog(); if (dr == DialogResult.OK) { autocompleteUsers(); } } }