コード例 #1
0
        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);
        }
コード例 #2
0
        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);
            }
        }
コード例 #3
0
 private void DetectResultsInStream(IFragment fragment)
 {
     // Stop scan, only when a scan is still active.
     _backgroundDataBlockScanner.Stop();
     _backgroundDataBlockScanner.Scan(fragment);
 }