private void DetectResultsInFragment(IFragment fragment) { // Stop scan, only when a scan is still active. _backgroundDataBlockScanner.Stop(); // Start scanning the header source file for results. _backgroundDataBlockScanner.RunWorkerCompleted += new System.ComponentModel.RunWorkerCompletedEventHandler(_backgroundDataBlockScanner_RunWorkerCompleted); _backgroundDataBlockScanner.Scan(fragment); }
public void StopScan() { if (!IsBusy) { return; } _backgroundDataBlockScanner.Stop(); ResetAllScanAttributes(); }
private void FileTree_DataSourceChanged(object sender, EventArgs e) { _backgroundDataBlockScanner.Stop(); ResultBeingRetrieved = null; }