Ejemplo n.º 1
0
        private void scanerTestToolStripMenuItem_Click(object sender, EventArgs e)
        {
            ScanerTest form    = new ScanerTest();
            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 scanerTestToolStripMenuItem_Click(object sender, EventArgs e)
        {
            ScanerTest form = new ScanerTest();
            bool allowed = Compas.Logic.Security.CurrentSecurityContext.Principal.OpperationAllowed(form.Name);

            if (allowed == true)
            {

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

            }
        }