Habanero.Faces.Base.DateTimePickerMapper.InternalUpdateControlValueFromBo C# (CSharp) Method

InternalUpdateControlValueFromBo() protected method

Updates the value on the control from the corresponding property on the represented IControlMapper.BusinessObject
protected InternalUpdateControlValueFromBo ( ) : void
return void
        protected  override void InternalUpdateControlValueFromBo()
        {
            if (_businessObject == null) return;
            object propertyValue = GetPropertyValue();
            if (propertyValue == null)
            {
                _picker.ValueOrNull = null;
            } else
            {
                _picker.Value = Convert.ToDateTime(propertyValue);
            }
        }
    }