Exemple #1
0
        protected SearchSubsystem(
            Control parent,
            RichTextBox findEditor,
            Panel panelSearchIcon,
            ListBox listBoxSuggest,
            LuceneSearcher <TId, TObj> searcher,
            IDocumentAdapter <TId, TObj> adapter,
            params LayoutViewControl[] layoutViews)
        {
            _parent          = parent;
            _findEditor      = findEditor;
            _panelSearchIcon = panelSearchIcon;

            _listBoxSuggest = listBoxSuggest;

            Searcher = searcher;
            _adapter = adapter;
            _views   = layoutViews;

            _listBoxSuggest.Visible = false;
            _listBoxSuggest.Height  = 0;

            _highlighter = new SearchStringHighlighter(_findEditor);
            _highlighter.Highlight();
        }
Exemple #2
0
        protected SearchSubsystem(
            Control parent,
            SearchBar searchBar,
            LuceneSearcher <TId, TObj> searcher,
            IDocumentAdapter <TId, TObj> adapter,
            params LayoutViewControl[] layoutViews)
        {
            _parent    = parent;
            _searchBar = searchBar;

            Searcher = searcher;
            _adapter = adapter;
            _views   = layoutViews;

            _highlighter = new SearchStringHighlighter(_searchBar.Input);
            _highlighter.Highlight();
        }