Beispiel #1
0
        public AutoCompleteSet(AutoCompleteContext context, ICollection <string> autoCompleteCollection)
        {
            Context = context;

            this.autoCompleteSet = new SortedSet <string>(autoCompleteCollection);
            enumerator           = next();
        }
Beispiel #2
0
        public AutoCompleteSet GetAutoCompleteSet()
        {
            var context = new AutoCompleteContext(instance);

            foreach (var pair in autoCompleterList)
            {
                var autoCompleteSet = pair.Value.GetAutoCompleteSet(context);

                if (autoCompleteSet != null)
                {
                    return(autoCompleteSet);
                }
            }

            return(null);
        }