示例#1
0
 private void HintChangedHandler(HintHit current)
 {
     if (current != null && Console.HintModule.IteratingHints)
     {
         SetCursor(current.SufixOffset);
     }
 }
示例#2
0
 private void SetToCurrentHint()
 {
     if (Iterator != null)
     {
         Current = new HintHit(Console.InputModule.UserInput, Iterator, Iterator.Current);
         OnHintChanged.Invoke(Current);
     }
     else
     {
         bool hadValue = Current != null;
         Current = null;
         if (hadValue)
         {
             OnHintChanged.Invoke(Current);
         }
     }
 }