Пример #1
0
 public RunSearchCommand(DocumentHierarchySearcher documentHierarchySearcher, MainViewModel mainViewModel, TreeViewModel treeViewModel,
                         DocumentHierarchyFactory documentHierarchyFactory, ClearTreeViewCommand clearTreeViewCommand, SyncWithActiveDocumentCommand syncWithActiveDocumentCommand)
 {
     this.documentHierarchySearcher     = documentHierarchySearcher;
     this.mainViewModel                 = mainViewModel;
     this.treeViewModel                 = treeViewModel;
     this.documentHierarchyFactory      = documentHierarchyFactory;
     this.clearTreeViewCommand          = clearTreeViewCommand;
     this.syncWithActiveDocumentCommand = syncWithActiveDocumentCommand;
     this.backgroundSearchers           = new List <BackgroundSearcher>();
 }
Пример #2
0
 public ReindexSearchTreeCommand(MainViewModel mainViewModel, DocumentHierarchyFactory documentHierarchyFactory, WorkspaceDirectoryModel workspaceDirectoryModel,
                                 ClearTreeViewCommand clearTreeViewCommand, RunSearchCommand runSearchCommand, FilesPatternProvider filesPatternProvider, SyncWithActiveDocumentCommand syncWithActiveDocumentCommand)
 {
     this.mainViewModel                 = mainViewModel;
     this.documentHierarchyFactory      = documentHierarchyFactory;
     this.workspaceDirectoryModel       = workspaceDirectoryModel;
     this.clearTreeViewCommand          = clearTreeViewCommand;
     this.runSearchCommand              = runSearchCommand;
     this.filesPatternProvider          = filesPatternProvider;
     this.syncWithActiveDocumentCommand = syncWithActiveDocumentCommand;
     this.backgroundIndexers            = new List <BackgroundIndexer>();
 }