コード例 #1
0
ファイル: Main.cs プロジェクト: vijaybandi/SQLTrismegiste
        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();
        }
コード例 #2
0
ファイル: Main.cs プロジェクト: rudi-bruchez/SQLTrismegiste
        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();

        }