Beispiel #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");
            }
        }
		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");
			}
		}