/// <summary>
        /// Removes event handlers previously assigned to the ComboBox
        /// </summary>
        /// <param name="mapper">The mapper for the lookup ComboBox</param>
        public void RemoveCurrentHandlers(IComboBoxMapper mapper)
        {
            _mapper = mapper;
            var comboBox = mapper.GetControl() as ComboBox;
            if (comboBox == null) return;

            comboBox.SelectedIndexChanged -= SelectIndexChangedHandler;
            _mapper.SelectedIndexChangedHandler = null;
        }
 /// <summary>
 /// Adds event handlers to the ComboBox that are suitable for the UI environment
 /// </summary>
 /// <param name="mapper">The mapper for the lookup ComboBox</param>
 public void AddHandlers(IComboBoxMapper mapper)
 {
     _mapper = mapper;
     var comboBoxWin = mapper.GetControl();
     if (comboBoxWin != null)
     {
         comboBoxWin.KeyPress += ComboBoxWinOnKeyPressHandler();
     }
 }
        public void AddItemSelectedEventHandler(IComboBoxMapper mapper)
        {
            _mapper = mapper;
            var comboBox = mapper.GetControl() as ComboBox;
            if (comboBox == null) return;

            comboBox.SelectedIndexChanged += SelectIndexChangedHandler;
            _mapper.SelectedIndexChangedHandler = SelectIndexChangedHandler;
        }
        /// <summary>
        /// Removes event handlers previously assigned to the ComboBox
        /// </summary>
        /// <param name="mapper">The mapper for the lookup ComboBox</param>
        public void RemoveCurrentHandlers(IComboBoxMapper mapper)
        {

            _mapper = mapper;
            var comboBoxWin = mapper.GetControl() as ComboBox;
            if (comboBoxWin != null)
            {
                comboBoxWin.SelectedIndexChanged -= mapper.SelectedIndexChangedHandler;
            }
        }
        /// <summary>
        /// Adds event handlers to the ComboBox that are suitable for the UI environment
        /// </summary>
        /// <param name="mapper">The mapper for the lookup ComboBox</param>
        public void AddHandlers(IComboBoxMapper mapper)
        {
            _mapper = mapper;
            var comboBoxWin = mapper.GetControl();

            if (comboBoxWin != null)
            {
                comboBoxWin.KeyPress += ComboBoxWinOnKeyPressHandler();
            }
        }
        /// <summary>
        /// Removes event handlers previously assigned to the ComboBox
        /// </summary>
        /// <param name="mapper">The mapper for the lookup ComboBox</param>
        public void RemoveCurrentHandlers(IComboBoxMapper mapper)
        {
            _mapper = mapper;
            var comboBoxWin = mapper.GetControl() as ComboBox;

            if (comboBoxWin != null)
            {
                comboBoxWin.SelectedIndexChanged -= mapper.SelectedIndexChangedHandler;
            }
        }
        /// <summary>
        /// Removes event handlers previously assigned to the ComboBox
        /// </summary>
        /// <param name="mapper">The mapper for the lookup ComboBox</param>
        public void RemoveCurrentHandlers(IComboBoxMapper mapper)
        {
            _mapper = mapper;
            var comboBox = mapper.GetControl() as ComboBox;

            if (comboBox == null)
            {
                return;
            }

            comboBox.SelectedIndexChanged      -= SelectIndexChangedHandler;
            _mapper.SelectedIndexChangedHandler = null;
        }
        public void AddItemSelectedEventHandler(IComboBoxMapper mapper)
        {
            _mapper = mapper;
            var comboBox = mapper.GetControl() as ComboBox;

            if (comboBox == null)
            {
                return;
            }

            comboBox.SelectedIndexChanged      += SelectIndexChangedHandler;
            _mapper.SelectedIndexChangedHandler = SelectIndexChangedHandler;
        }
 /// <summary>
 /// Adds event handlers to the ComboBox that are suitable for the UI environment
 /// </summary>
 /// <param name="mapper">The mapper for the lookup ComboBox</param>
 public void AddHandlers(IComboBoxMapper mapper)
 {
     AddItemSelectedEventHandler(mapper);
 }
 /// <summary>
 /// Adds event handlers to the ComboBox that are suitable for the UI environment
 /// </summary>
 /// <param name="mapper">The mapper for the lookup ComboBox</param>
 public void AddHandlers(IComboBoxMapper mapper)
 {
     AddItemSelectedEventHandler(mapper);
 }