public void RunView(EventLogConfigurationView view, LoggingState logState) { View = view; State = logState; ResetView( ); View.SettingsChanged += new EventHandler(View_SettingsChanged); View.EnableLoggingChanged += new EventHandler(View_EnableLoggingChanged); View.EnableThreadingChanged += new EventHandler(View_EnableThreadingChanged); View.LogInformationChanged += new EventHandler(View_LogInformationChanged); View.LogWarningsChanged += new EventHandler(View_LogWarningsChanged); View.LogDebugChanged += new EventHandler(View_LogDebugChanged); View.LogErrorChanged += new EventHandler(View_LogErrorChanged); View.LogAuditChanged += new EventHandler(View_LogAuditChanged); View.LogDicomMessagesChanged += new EventHandler(View_LogDicomMessagesChanged); View.LogDicomDatasetChanged += new EventHandler(View_LogDicomDatasetChanged); View.DataSetDirectoryChanged += new EventHandler(View_DataSetDirectoryChanged); View.EnableAutoSaveLogChanged += new EventHandler(View_EnableAutoSaveLogChanged); View.AutoSaveDaysChanged += new EventHandler(View_AutoSaveDaysChanged); View.AutoSaveTimeChanged += new EventHandler(View_AutoSaveTimeChanged); View.AutoSaveDirectoryChanged += new EventHandler(View_AutoSaveDirectoryChanged); View.DeleteSavedLogChanged += new EventHandler(View_DeleteSavedLogChanged); }
public void ResetState(LoggingState state) { State = state; ResetView( ); }