//-----------------------------------------------------------------
        #region ** ctor

        /// <summary>
        /// Initializes a new instance of a <see cref="DropDownProvider"/>.
        /// </summary>
        public DropDownProvider(MultiColumnComboBox cb)
        {
            // hook up to parent control
            _cb                 = cb;
            _cb.TextChanged    += _cbTextChanged;
            _cb.LostFocus      += _cbLostFocus;
            _cb.PreviewKeyDown += _cbKeyDown;

            // initialize dropdown
            _flex                   = new C1FlexGrid();
            _flex.LostFocus        += _cbLostFocus;
            _flex.SelectionChanged += _flex_SelectionChanged;
            UpdateGridLayout();
        }
Esempio n. 2
0
        /// <summary>
        /// Initializes a new instance of a <see cref="DropDownProvider"/>.
        /// </summary>
        public DropDownProvider(MultiColumnComboBox cb)
        {
            // hook up to parent control
            _cb = cb;
            _cb.TextChanged += _cbTextChanged;
            _cb.LostFocus += _cbLostFocus;
            _cb.PreviewKeyDown += _cbKeyDown;

            // initialize dropdown
            _flex = new C1FlexGrid();
            _flex.LostFocus += _cbLostFocus;
            _flex.SelectionChanged += _flex_SelectionChanged;
            UpdateGridLayout();
        }