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); }
private void FileTree_FocusRowChanged(object sender, EventArgs e) { _backgroundDataBlockScanner.Stop(); RetrieveResultProgressPercentage = 0; ResultBeingRetrieved = (FocusRow == null) ? null : FocusRow.Item as IFragment; if (ResultBeingRetrieved != null) { _backgroundDataBlockScanner.Scan(ResultBeingRetrieved); // Show progress message in the tree UpdateRows(false); } }
private void DetectResultsInStream(IFragment fragment) { // Stop scan, only when a scan is still active. _backgroundDataBlockScanner.Stop(); _backgroundDataBlockScanner.Scan(fragment); }