Пример #1
0
 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();
     }
 }
Пример #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();
     }
 }