Esempio n. 1
0
        private void RoleActionsToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Security.RoleActionsF form = new Security.RoleActionsF();

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

            if (allowed == true)
            {

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

            }
        }
Esempio n. 2
0
 private void правилаРолейToolStripMenuItem_Click(object sender, EventArgs e)
 {
     Security.RoleActionsF actions = new Security.RoleActionsF();
     actions.ShowDialog();
 }