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;
 }
 private void btnPermissions_Click(object sender, EventArgs e)
 {
     using (UserPermissions frm = new UserPermissions(GlobalVariables.Experiment.ID))
     {
         frm.ShowDialog();
     }
 }