Exemplo n.º 1
0
        void _revert()
        {
            if (!_isCurrentTextValid ||
                !_valuesEqual(_lastCommittedValue, _currentValue) ||
                !_valuesEqual(_lastCommittedValue, _lastValue))
            {
                PropertyChangeRevertedEventArgs e =
                    new PropertyChangeRevertedEventArgs(_lastCommittedValue);

                _raisePropertyChangeRevertedEvent(e);

                _lastValue    = _lastCommittedValue;
                _currentValue = _lastCommittedValue;
                _textBox.Text = _validator.ConvertTo <String>(_lastCommittedValue);
            }
        }
Exemplo n.º 2
0
 void _customSourceListEditor_PropertyChangeReverted(object sender, PropertyChangeRevertedEventArgs e)
 {
     _raisePropertyChangeRevertedEvent(e);
 }