Ejemplo n.º 1
0
        /// <summary>
        /// Creates a suggestion field with a list of possible text inputs and the maximum number of
        /// suggested texts to display in the drop down box.
        /// </summary>
        /// <param name="suggestionList">A list of possible text inputs.</param>
        /// <param name="maxSuggestions">The maximum number of suggested texts to display in
        /// the drop down box.</param>
        public G2DSuggestField(List <String> suggestionList, int maxSuggestions)
            : base()
        {
            this.data           = suggestionList;
            this.maxSuggestions = maxSuggestions;

            suggestList         = new G2DList();
            suggestList.Visible = false;

            matches  = new List <string>();
            criteria = MatchCriteria.Contains;
            isPartOf = null;
            keepSuggestionListOpaque = true;

            suggestList.SelectionModel.ValueChangedEvent += new ValueChanged(ItemSelected);

            name = "G2DSuggestField";
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Creates a suggestion field with a list of possible text inputs and the maximum number of 
        /// suggested texts to display in the drop down box.
        /// </summary>
        /// <param name="suggestionList">A list of possible text inputs.</param>
        /// <param name="maxSuggestions">The maximum number of suggested texts to display in
        /// the drop down box.</param>
        public G2DSuggestField(List<String> suggestionList, int maxSuggestions) 
            : base()
        {
            this.data = suggestionList;
            this.maxSuggestions = maxSuggestions;

            suggestList = new G2DList();
            suggestList.Visible = false;

            matches = new List<string>();
            criteria = MatchCriteria.Contains;
            isPartOf = null;
            keepSuggestionListOpaque = true;

            suggestList.SelectionModel.ValueChangedEvent += new ValueChanged(ItemSelected);

            name = "G2DSuggestField";
        }