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