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