void SetupSearch () { AppDelegate.IndexUpdateManager.UpdaterChange += ToggleSearchCreationStatus; searchIndex = AppDelegate.Root.GetSearchIndex (); mdocSearch = new IndexSearcher (AppDelegate.IndexUpdateManager.IsFresh ? AppDelegate.Root.GetIndex () : null); indexResults.Source = new IndexDataSource (mdocSearch); multipleMatchResults.Source = new MultipleMatchDataSource (this); searchResults.Source = new ResultDataSource (); splitView.Delegate = new SplitViewDelegate (); tabSelector.DidSelect += (sender, e) => { if (e.Item.TabView.IndexOf (e.Item) == 2) WindowForSheet.MakeFirstResponder (toolbarSearchEntry); }; }
public IndexDataSource (IndexSearcher searcher) { this.searcher = searcher; }
void SetupSearch () { AppDelegate.IndexUpdateManager.UpdaterChange += ToggleSearchCreationStatus; searchIndex = AppDelegate.Root.GetSearchIndex (); mdocSearch = new IndexSearcher (AppDelegate.Root.GetIndex ()); indexResults.Source = new IndexDataSource (mdocSearch); multipleMatchResults.Source = new MultipleMatchDataSource (this); searchResults.Source = new ResultDataSource (); }
public IndexDataSource(IndexSearcher searcher) { this.searcher = searcher; }