private void tsStudent_Click(object sender, EventArgs e)
 {
     if (Application.OpenForms["StudentSearch"] as StudentSearch == null)
     {
         StudentSearch frm = new StudentSearch(this);
         frm.MdiParent       = this;
         frm.Dock            = DockStyle.Fill;
         frm.FormBorderStyle = FormBorderStyle.None;
         frm.Show();
     }
     else
     {
         StudentSearch frm1 = (StudentSearch)Application.OpenForms["StudentSearch"];
         frm1.Focus();
     }
 }
Beispiel #2
0
 private void tsStudent_Click(object sender, EventArgs e)
 {
     if (!Jarvis.CurrentUser.UserHasPermissionForAction("Student", "View"))
     {
         return;
     }
     if (Application.OpenForms["StudentSearch"] as StudentSearch == null)
     {
         StudentSearch frm = new StudentSearch(this);
         frm.MdiParent       = this;
         frm.Dock            = DockStyle.Fill;
         frm.FormBorderStyle = FormBorderStyle.None;
         frm.Show();
     }
     else
     {
         StudentSearch frm1 = (StudentSearch)Application.OpenForms["StudentSearch"];
         frm1.Focus();
     }
 }