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

            this.autoCompleteSet = new SortedSet <string>(autoCompleteCollection);
            enumerator           = next();
        }
예제 #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);
        }