private void SourcePropUpdatedHandler(object sender, BOPropEventArgs e) { TInput sourcePropValue; try { sourcePropValue = GetSourcePropValue(); } catch (InvalidCastException ex) { string message = "An error occured in the Updating a property via the property Link " + ex.Message; throw new HabaneroDeveloperException(message, message, ex); } object destPropValue = _destinationProp.Value; object transformedValue = _transform(_previousSourceValue); if (destPropValue == null || destPropValue.Equals(transformedValue)) { _owningBO.SetPropertyValue(_destPropName, _transform(sourcePropValue)); } _previousSourceValue = sourcePropValue; }
/// <summary> /// Event handler for handling the event of a property belonging to this key being updated. /// </summary> protected override void BOPropUpdated_Handler(object sender, BOPropEventArgs e) { _previousValue = _currentValue; _currentValue = AsString_CurrentValue(); FireValueUpdated(); }
/// <summary> /// Event handler for handling the event of a property belonging to this key being updated. /// </summary> protected virtual void BOPropUpdated_Handler(object sender, BOPropEventArgs e) { FireValueUpdated(); }
private void RelatedBoKeyPropUpdated(object sender, BOPropEventArgs boPropEventArgs) { UpdateForeignKeyAndStoredRelationshipExpression(); }