Пример #1
0
 private void ListUsersRbnBtn_Click(object sender, EventArgs e)
 {
     if (PrivilegesManager.GetEventStatues(Calcium_RMS.Events.ListUsers) == EventStatus.Permit)
     {
         ListUsers aListUsers = new ListUsers();
         __AddTabPage(aListUsers, __ToolsColor);
     }
     else
     {
         MessageBox.Show(MsgTxt.PrivUserNotAllowedTxt, MsgTxt.InformationCaption, MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }
Пример #2
0
 private void usersAndPriviligesToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (PrivilegesManager.GetEventStatues(Calcium_RMS.Events.ListUsers) == EventStatus.Permit)
     {
         ListUsers aListUser = new ListUsers();
         // aListUser.MdiParent = Helper.Instance.ActiveMainWindow;
         aListUser.Show();
     }
     else
     {
         MessageBox.Show(MsgTxt.PrivUserNotAllowedTxt, MsgTxt.InformationCaption, MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }