Esempio n. 1
0
 public void ResetSearchState(int tabIndex, int textStartPos, int selectionLength)
 {
     _searchState = new TextSearchState
     {
         TabIndex        = tabIndex,
         StartPosUp      = textStartPos,
         StartPosDown    = textStartPos + selectionLength,
         InitialTabIndex = tabIndex,
         InitialStartPos = textStartPos,
         TabCount        = _tabPageDataCollection.TabPageDictionary.Count
     };
 }
Esempio n. 2
0
 public TabSearchEngine(TabPageDataCollection tabPageDataCollection, int textStartIndex = 0)
 {
     _searchState           = new TextSearchState();
     _tabPageDataCollection = tabPageDataCollection;
     ResetSearchState(_tabPageDataCollection.ActiveTabIndex, textStartIndex, 0);
 }