Beispiel #1
0
        private void RolesToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Security.RolesForm form = new Security.RolesForm();

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

            if (allowed == true)
            {
                form.MdiParent = this;
                form.Show();
            }
            else
            {
                MessageBox.Show("Дія заборонена. Зверніться до адміністратора.");
            }
        }
Beispiel #2
0
        private void RolesToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Security.RolesForm form = new Security.RolesForm();

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

            if (allowed == true)
            {

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

            }
        }
Beispiel #3
0
 private void RolesMI_Click(object sender, EventArgs e)
 {
     Security.RolesForm roles = new Security.RolesForm();
     roles.ShowDialog();
 }
Beispiel #4
0
 private void RolesMI_Click(object sender, EventArgs e)
 {
     Security.RolesForm roles = new Security.RolesForm();
     roles.ShowDialog();
 }