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