Ejemplo n.º 1
0
        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("Дія заборонена. Зверніться до адміністратора.");
            }
        }
Ejemplo n.º 2
0
        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("Дія заборонена. Зверніться до адміністратора.");

            }
        }
Ejemplo n.º 3
0
 private void ActionsMI_Click(object sender, EventArgs e)
 {
     Security.ActionsForm actions = new Security.ActionsForm();
     actions.ShowDialog();
 }
Ejemplo n.º 4
0
 private void ActionsMI_Click(object sender, EventArgs e)
 {
     Security.ActionsForm actions = new Security.ActionsForm();
     actions.ShowDialog();
 }