public void Bind(TObjectType source) { Source = source; //save original value _originalValue = GetValueFromSource(); //the function update to any change of the source _propertyBinder.AddValueChangedListener(source, Update); }
public virtual void Bind(TObjectType source) { DeleteBinding(); UpdateSource(source); //save original value _originalValue = GetValueFromSource(); this.DoWithinLatch(() => updateControl(_originalValue)); //the function update to any change of the source _propertyBinder.AddValueChangedListener(source, Update); }