コード例 #1
0
ファイル: Main2.cs プロジェクト: SariSultan/RMS
 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);
     }
 }