示例#1
0
文件: MainMDI.cs 项目: zep2zep/Compas
        private void SecurityActionsToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Security.ActionsForm form = new Security.ActionsForm();


            bool allowed = Compas.Logic.Security.CurrentSecurityContext.Principal.OpperationAllowed(form.Name);

            if (allowed == true)
            {
                form.MdiParent = this;
                form.Show();
            }
            else
            {
                MessageBox.Show("Дія заборонена. Зверніться до адміністратора.");
            }
        }
示例#2
0
文件: MainMDI.cs 项目: rymarrv/Compas
        private void SecurityActionsToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Security.ActionsForm form = new Security.ActionsForm();

            bool allowed = Compas.Logic.Security.CurrentSecurityContext.Principal.OpperationAllowed(form.Name);

            if (allowed == true)
            {

                form.MdiParent = this;
                form.Show();
            }
            else
            {
                MessageBox.Show("Дія заборонена. Зверніться до адміністратора.");

            }
        }
示例#3
0
 private void ActionsMI_Click(object sender, EventArgs e)
 {
     Security.ActionsForm actions = new Security.ActionsForm();
     actions.ShowDialog();
 }
示例#4
0
文件: Main.cs 项目: rymarrv/Compas
 private void ActionsMI_Click(object sender, EventArgs e)
 {
     Security.ActionsForm actions = new Security.ActionsForm();
     actions.ShowDialog();
 }