private void OpenLoggingView(object sender, EventArgs e) { var loggingView = new LoggingView(); _loggingPresenter = new LoggingPresenter(loggingView); UpdateViewPanel(_loggingPresenter.LoggingView); }
public LoggingPresenter(LoggingView loggingView) { LoggingView = loggingView; KaptureConfig = KaptureConfig.GetInstance(); Configuration = (Configuration)KaptureConfig.ConfigManager.Config; LoggingConfig = Configuration.Logging; LoggingView.LoggingEnabled = LoggingConfig.LoggingEnabled; LoggingView.LogFormatList = LogFormat.LogFormats; LoggingView.LogFormat = LoggingConfig.LogFormat; LoggingView.LogLocation = LoggingConfig.LogLocation; LoggingView.LoggingEnabledChanged += LoggingEnabledChanged; LoggingView.LogFormatChanged += LogFormatChanged; LoggingView.LogLocationUpdated += LogLocationUpdated; }