Esempio n. 1
0
 public BasePresenter(BaseView baseView, IKaptureData kaptureData, KaptureGUILogger logger)
 {
     _kaptureData = kaptureData;
     _logger      = logger;
     SetupBaseView(baseView);
     _viewPanel = _baseView.ViewPanel;
     OpenMainView(this, null);
     Task.Run(InitAdvancedPresenter);
 }
Esempio n. 2
0
 public MainPresenter(MainView mainView, KaptureGUILogger kaptureGUILogger)
 {
     MainView         = mainView;
     KaptureGUILogger = kaptureGUILogger;
     KaptureConfig    = KaptureConfig.GetInstance();
     Configuration    = (Configuration)KaptureConfig.ConfigManager.Config;
     SetupGeneral();
     SetupFilters();
     SetupLogging();
     SetupDiscord();
     SetupHTTP();
     SetupMessageLog();
 }
Esempio n. 3
0
        public static KaptureGUILogger GetInstance(string logDirectory)
        {
            if (_kaptureGuiLogger != null)
            {
                return(_kaptureGuiLogger);
            }

            lock (Lock)
            {
                if (_kaptureGuiLogger == null)
                {
                    _kaptureGuiLogger = new KaptureGUILogger(logDirectory);
                }
            }

            return(_kaptureGuiLogger);
        }
Esempio n. 4
0
 private void SetupLogger()
 {
     _kaptureGuiLogger = KaptureGUILogger.GetInstance(_kaptureData.GetAppDirectory());
 }