Exemplo n.º 1
0
        private void menuItemLock_Click(object sender, EventArgs e)
        {
            if (!Security.IsAuthorized(Permissions.SecurityAdmin))
            {
                return;
            }
            FormAccountingLock FormA = new FormAccountingLock();

            FormA.ShowDialog();
            if (FormA.DialogResult == DialogResult.OK)
            {
                SecurityLogs.MakeLogEntry(Permissions.SecurityAdmin, 0, "Accounting Lock Changed");
            }
        }
Exemplo n.º 2
0
		private void menuItemLock_Click(object sender,EventArgs e) {
			if(!Security.IsAuthorized(Permissions.SecurityAdmin)) {
				return;
			}
			FormAccountingLock FormA=new FormAccountingLock();
			FormA.ShowDialog();
			if(FormA.DialogResult==DialogResult.OK){
				SecurityLogs.MakeLogEntry(Permissions.SecurityAdmin,0,"Accounting Lock Changed");
			}
		}