Habanero.Faces.Base.RelationshipComboBoxMapper.SetRelatedBusinessObject C# (CSharp) Method

SetRelatedBusinessObject() protected method

Sets the property value to that provided. If the property value is invalid, the error provider will be given the reason why the value is invalid.
protected SetRelatedBusinessObject ( IBusinessObject value ) : void
value IBusinessObject
return void
        protected virtual void SetRelatedBusinessObject(IBusinessObject value)
        {
            if (_businessObject == null) return;

            try
            {
                if (_singleRelationship != null) _singleRelationship.SetRelatedObject(value);
            }
            catch (HabaneroIncorrectTypeException)
            {
                ////TODO Brett 24 Mar 2009: Write tests and implement                this.ErrorProvider.SetError(Control, ex.Message);
                return;
            }
            UpdateErrorProviderErrorMessage();
        }