コード例 #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
        public void StopScan()
        {
            if (!IsBusy)
            {
                return;
            }

            _backgroundDataBlockScanner.Stop();
            ResetAllScanAttributes();
        }
コード例 #3
0
        private void FileTree_DataSourceChanged(object sender, EventArgs e)
        {
            _backgroundDataBlockScanner.Stop();

            ResultBeingRetrieved = null;
        }