コード例 #1
0
        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);
        }
コード例 #2
0
        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);
        }