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