private void tsStaff_Click(object sender, EventArgs e)
 {
     if (Application.OpenForms["StaffSearchNew"] as StaffSearch == null)
     {
         StaffSearch frm = new StaffSearch(this);
         frm.MdiParent       = this;
         frm.Dock            = DockStyle.Fill;
         frm.FormBorderStyle = FormBorderStyle.None;
         frm.Show();
     }
     else
     {
         StaffSearch frm1 = (StaffSearch)Application.OpenForms["StaffSearch"];
         frm1.Focus();
     }
 }
Esempio n. 2
0
 private void tsStaff_Click(object sender, EventArgs e)
 {
     if (!Jarvis.CurrentUser.UserHasPermissionForAction("Staff", "View"))
     {
         return;
     }
     if (Application.OpenForms["StaffSearchNew"] as StaffSearch == null)
     {
         StaffSearch frm = new StaffSearch(this);
         frm.MdiParent       = this;
         frm.Dock            = DockStyle.Fill;
         frm.FormBorderStyle = FormBorderStyle.None;
         frm.Show();
     }
     else
     {
         StaffSearch frm1 = (StaffSearch)Application.OpenForms["StaffSearch"];
         frm1.Focus();
     }
 }