private void BuildNewContextFromQuery()
        {
            string query = Query;

            context.Destroy();
            context = new SimpleSearchContext();

            foreach (char c in query.ToCharArray())
            {
                context.LastContext = context.Clone() as SimpleSearchContext;
                context.Query      += c;
                context.Results     = InitialResults();
            }
            base.OnSearchFinished(true, true, Selection, Query);
        }
Exemple #2
0
 public void AddChar(char character)
 {
     context.LastContext = (SimpleSearchContext)context.Clone();
     context.Query      += character;
     UpdateResults();
 }