Habanero.Faces.Base.CollectionComboBoxMapper.ApplyChangesToBusinessObject C# (CSharp) Method

ApplyChangesToBusinessObject() public method

Updates the properties on the represented business object
public ApplyChangesToBusinessObject ( ) : void
return void
        public override void ApplyChangesToBusinessObject()
        {
            IBusinessObject selectedOption = _comboBoxCollectionSelector.SelectedBusinessObject;
            object newValue = null;
            if (selectedOption != null)
            {
                newValue = !string.IsNullOrEmpty(OwningBoPropertyName) ? selectedOption.Props[OwningBoPropertyName].Value: selectedOption.ID.GetAsGuid();
            }
            SetPropertyValue(newValue);
        }