/// <summary> /// Refreshes all properties of <see cref="BocTextValue"/> that depend on the current value of /// <see cref="IBusinessObjectBoundControl.Property"/>. /// </summary> private void RefreshPropertiesFromObjectModel() { if (Property != null) { if (_valueType == BocDateTimeValueType.Undefined) { _actualValueType = GetBocDateTimeValueType(Property); } } }
protected override void LoadControlState(object savedState) { object[] values = (object[])savedState; base.LoadControlState(values[0]); if (values[1] != null) { _internalDateValue = (string)values[1]; } if (values[2] != null) { _internalTimeValue = (string)values[2]; } _valueType = (BocDateTimeValueType)values[3]; _actualValueType = (BocDateTimeValueType)values[4]; _showSeconds = (bool)values[5]; _provideMaxLength = (bool)values[6]; _savedDateTimeValue = (DateTime?)values[7]; }