private void butAccounting_Click(object sender,System.EventArgs e) { if(!Security.IsAuthorized(Permissions.Accounting)) { return; } if(FormA==null || FormA.IsDisposed) { FormA=new FormAccounting(); } FormA.Show(); if(FormA.WindowState==FormWindowState.Minimized) { FormA.WindowState=FormWindowState.Normal; } FormA.BringToFront(); }
private void butAccounting_Click(object sender,System.EventArgs e) { if(!Security.IsAuthorized(Permissions.Accounting)) { return; } FormAccounting FormA=new FormAccounting(); FormA.Show(); }