public Main() { System.IO.Directory.CreateDirectory(_outputRoot); //OutputPath = //(new System.IO.FileInfo(OutputPath)).Directory.Create(); // If the directory already exists, this method does nothing. _worker.DoWork += worker_RunAnalysis; _worker.RunWorkerCompleted += worker_RunAnalysisCompleted; _worker.ProgressChanged += worker_RunAnalysisProgressChanged; _worker.WorkerReportsProgress = true; try { LoadConfig(); } catch (Exception) { // silence; } StatusText = App.Localized["msgNotConnected"]; OnPropertyChanged("StatusText"); // => make the class sealed. Calling private method in constructor ApplicationTitle = $"SQL Trismegiste {Version}"; // TODO DynamicResource Title _ce = new CorpusManager.Manager(); }