示例#1
0
文件: MainMDI.cs 项目: zep2zep/Compas
        private void CardTypesToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Cards.CardTypesList form = new Cards.CardTypesList();
            bool allowed             = Compas.Logic.Security.CurrentSecurityContext.Principal.OpperationAllowed(form.Name);

            if (allowed == true)
            {
                form.MdiParent = this;
                form.Show();
            }
            else
            {
                MessageBox.Show("Дія заборонена. Зверніться до адміністратора.");
            }
        }
示例#2
0
文件: MainMDI.cs 项目: rymarrv/Compas
        private void CardTypesToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Cards.CardTypesList form = new Cards.CardTypesList();
            bool allowed = Compas.Logic.Security.CurrentSecurityContext.Principal.OpperationAllowed(form.Name);

            if (allowed == true)
            {

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

            }
        }