public static UserPermissions CreateInstance(int id)
 {
     if (inst == null || inst.IsDisposed)
     {
         inst = new UserPermissions(id);
     }
     else
     {
         MessageBox.Show("An Instance of the Permissions Form is already open.", "Form Open", MessageBoxButtons.OK, MessageBoxIcon.Warning);
     }
     return inst;
 }
Exemplo n.º 2
0
 private void btnPermissions_Click(object sender, EventArgs e)
 {
     using (UserPermissions frm = new UserPermissions(GlobalVariables.Experiment.ID))
     {
         frm.ShowDialog();
     }
 }