Example #1
0
        private void WareCategoriesToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Wares.Category.CategoriesList form = new Wares.Category.CategoriesList();
            bool allowed = Compas.Logic.Security.CurrentSecurityContext.Principal.OpperationAllowed(form.Name);

            if (allowed == true)
            {
                form.MdiParent = this;
                form.Show();
            }
            else
            {
                MessageBox.Show("Дія заборонена. Зверніться до адміністратора.");
            }
        }
Example #2
0
        private void WareCategoriesToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Wares.Category.CategoriesList form = new Wares.Category.CategoriesList();
            bool allowed = Compas.Logic.Security.CurrentSecurityContext.Principal.OpperationAllowed(form.Name);

            if (allowed == true)
            {

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

            }
        }