示例#1
0
文件: MainMDI.cs 项目: zep2zep/Compas
        private void BrandsMI_Click(object sender, EventArgs e)
        {
            Cars.BrandsList form    = new Cars.BrandsList();
            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 BrandsMI_Click(object sender, EventArgs e)
        {
            Cars.BrandsList form = new Cars.BrandsList();
            bool allowed = Compas.Logic.Security.CurrentSecurityContext.Principal.OpperationAllowed(form.Name);

            if (allowed == true)
            {

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

            }
        }
示例#3
0
文件: CarData.cs 项目: rymarrv/Compas
 private void AddModelBt_Click(object sender, EventArgs e)
 {
     Cars.BrandsList form = new BrandsList();
     form.ShowDialog();
 }
示例#4
0
 private void AddModelBt_Click(object sender, EventArgs e)
 {
     Cars.BrandsList form = new BrandsList();
     form.ShowDialog();
 }