示例#1
0
 private void menuItemModules_Click(object sender,EventArgs e)
 {
     if(!Security.IsAuthorized(Permissions.Setup)){
         return;
     }
     FormModuleSetup FormM=new FormModuleSetup();
     if(FormM.ShowDialog()!=DialogResult.OK) {
         return;
     }
     SecurityLogs.MakeLogEntry(Permissions.Setup,0,"Modules");
 }
示例#2
0
		///<summary>Checks setup permission, launches the module setup window with the specified tab and then makes an audit entry.
		///This is simply a helper method because every preferences menu item will do the exact same code.</summary>
		private void LaunchModuleSetupWithTab(int selectedTab) {
			if(!Security.IsAuthorized(Permissions.Setup)) {
				return;
			}
			FormModuleSetup FormM=new FormModuleSetup(selectedTab);
			if(FormM.ShowDialog()!=DialogResult.OK) {
				return;
			}
			FillPatientButton(Patients.GetPat(CurPatNum));
			SecurityLogs.MakeLogEntry(Permissions.Setup,0,"Modules");
		}