///<summary>
 /// Constructor for the <see cref="BOSelectorAndBOEditorControlWin"/>
 ///</summary>
 ///<param name="controlFactory"></param>
 ///<param name="classDef"></param>
 ///<param name="uiDefName"></param>
 ///<exception cref="ArgumentNullException"></exception>
 public BOSelectorAndBOEditorControlWin(IControlFactory controlFactory, ClassDef classDef, string uiDefName)
 {
     if (controlFactory == null) throw new ArgumentNullException("controlFactory");
     if (classDef == null) throw new ArgumentNullException("classDef");
     _classDef = classDef;
     BOEditorControl boEditorControl = new BOEditorControl(controlFactory, classDef, uiDefName);
     SetupGridAndBOEditorControlWin(controlFactory, boEditorControl, uiDefName);
 }
        ///<summary>
        /// Constructor for the <see cref="BOSelectorAndBOEditorControlWin"/>
        ///</summary>
        ///<param name="controlFactory"></param>
        ///<param name="classDef"></param>
        ///<param name="uiDefName"></param>
        ///<exception cref="ArgumentNullException"></exception>
        public BOSelectorAndBOEditorControlWin(IControlFactory controlFactory, ClassDef classDef, string uiDefName)
        {
            if (controlFactory == null)
            {
                throw new ArgumentNullException("controlFactory");
            }
            if (classDef == null)
            {
                throw new ArgumentNullException("classDef");
            }
            _classDef = classDef;
            BOEditorControl boEditorControl = new BOEditorControl(controlFactory, classDef, uiDefName);

            SetupGridAndBOEditorControlWin(controlFactory, boEditorControl, uiDefName);
        }