예제 #1
0
        /// <summary>
        /// Constructs an empty searchbox.
        /// </summary>
        public SearchBox()
        {
            gui          = new SearchboxGui();
            searchByWord = false;
            suggestions  = new List <Tuple <string, string> >();

            SetHandlers();
        }
예제 #2
0
        /// <summary>
        /// Constructs a searchbox with suggestions.
        /// </summary>
        public SearchBox(List <Tuple <string, string> > suggestions)
        {
            gui              = new SearchboxGui();
            searchByWord     = false;
            this.suggestions = suggestions;

            SetHandlers();
        }