private IControlMapper AddMapper(Type controlType, Control control, string propName) { var controlHabanero = _controlAdaptorFactory.GetHabaneroControl(controlType, control); if (controlHabanero == null) { return(null); } return(AddMapper(CreateMapper(controlHabanero, propName))); }
/// <summary> /// Construcst the SelectorControlBinder with the Selector Control. /// </summary> /// <param name="listControl"></param> public HabaneroSelectorControlBinder(TControlType listControl) { _controlAdaptorFactory = new WinFormsControlAdaptorFactory(); ControlBinders = new List <HabaneroControlBinder <TBo> >(); _lstControl = _controlAdaptorFactory.GetHabaneroControl(listControl) as IListControl; _selectorManager = CreateBoColSelector(ListControl); _selectorManager.BusinessObjectSelected += OnBusinessObjectSelected; }