Exemplo n.º 1
0
 private void doctorListToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (Application.OpenForms["DoctorSearch"] as DoctorSearch == null)
     {
         DoctorSearch frm = new DoctorSearch(this);
         frm.MdiParent       = this;
         frm.Dock            = DockStyle.Fill;
         frm.FormBorderStyle = FormBorderStyle.None;
         frm.Show();
     }
     else
     {
         DoctorSearch frm1 = (DoctorSearch)Application.OpenForms["DoctorSearch"];
         frm1.Focus();
     }
 }
Exemplo n.º 2
0
 private void doctorsToolStripMenuItem1_Click(object sender, EventArgs e)
 {
     if (!Jarvis.CurrentUser.UserHasPermissionForAction("Medical Service", "View"))
     {
         return;
     }
     if (Application.OpenForms["DoctorSearch"] as DoctorSearch == null)
     {
         DoctorSearch frm = new DoctorSearch(this);
         frm.MdiParent       = this;
         frm.Dock            = DockStyle.Fill;
         frm.FormBorderStyle = FormBorderStyle.None;
         frm.Show();
     }
     else
     {
         DoctorSearch frm1 = (DoctorSearch)Application.OpenForms["DoctorSearch"];
         frm1.Focus();
     }
 }