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("Дія заборонена. Зверніться до адміністратора."); } }
private void AddModelBt_Click(object sender, EventArgs e) { Cars.BrandsList form = new BrandsList(); form.ShowDialog(); }