Esempio n. 1
0
 FileSearcherCreator(IFileTreeView fileTreeView, IImageManager imageManager, DotNetImageManager dotNetImageManager, ILanguageManager languageManager)
 {
     this.fileTreeView       = fileTreeView;
     this.imageManager       = imageManager;
     this.dotNetImageManager = dotNetImageManager;
     this.languageManager    = languageManager;
 }
Esempio n. 2
0
 public FileSearcher(FileSearcherOptions options, IFileTreeView fileTreeView, DotNetImageManager dotNetImageManager, SearchResultContext searchResultContext)
 {
     if (options.Filter == null)
     {
         throw new ArgumentException("options.Filter is null", "options");
     }
     if (options.SearchComparer == null)
     {
         throw new ArgumentException("options.SearchComparer is null", "options");
     }
     this.options = options.Clone();
     this.cancellationTokenSource = new CancellationTokenSource();
     this.filterSearcherOptions   = new FilterSearcherOptions {
         Dispatcher           = Dispatcher.CurrentDispatcher,
         FileTreeView         = fileTreeView,
         DotNetImageManager   = dotNetImageManager,
         Filter               = options.Filter,
         SearchComparer       = options.SearchComparer,
         OnMatch              = r => AddSearchResult(r),
         Context              = searchResultContext,
         CancellationToken    = this.cancellationTokenSource.Token,
         SearchDecompiledData = options.SearchDecompiledData,
     };
 }