public SourceAnalyzerAsync()
 {
     _controlAnalyzer = new SourceControlAnalyzer();
     _worker          = new BackgroundWorker();
     _worker.WorkerReportsProgress      = true;
     _worker.WorkerSupportsCancellation = true;
     _worker.DoWork             += _worker_DoWork;
     _worker.ProgressChanged    += _worker_ProgressChanged;
     _worker.RunWorkerCompleted += _worker_RunWorkerCompleted;
 }
Exemple #2
0
 public void AnalyzeFiles(string directory, bool scanSubFolder)
 {
     _directory              = directory;
     _scanSubFolder          = scanSubFolder;
     _controlAnalyzer        = new SourceControlAnalyzer();
     _fileEntries            = new List <FileEntry>();
     _synchronizationContext = WindowsFormsSynchronizationContext.Current;
     _threadStart            = new ThreadStart(ScanFiles);
     _thread = new Thread(_threadStart);
     _thread.Start();
 }
Exemple #3
0
 public AsyncSourceAnalyzer()
 {
     _controlAnalyzer                = new SourceControlAnalyzer();
     this.WorkerReportsProgress      = true;
     this.WorkerSupportsCancellation = true;
 }