protected override void ChangeDataValue( ModelChangedEventArgs e, bool undo )
Parameters
- e
- an edit describing the change to be performed
- undo
- true if undoing; false if redoing
protected override void ChangeDataValue( ModelChangedEventArgs e, bool undo )
This is called by ChangeModel. You will want to override this method to handle properties that you have added to your model data classes. Or you can have your data classes implement IChangeDataValue to achieve the same effect.
By default this just calls IChangeDataValue.ChangeDataValue if the ModelChangedEventArgs.Data implements IChangeDataValue. Otherwise this uses reflection to set the System.ComponentModel.PropertyChangedEventArgs.PropertyName to the ModelChangedEventArgs.OldValue or the ModelChangedEventArgs.NewValue, depending on the value of undo.
If you override this method, remember to call the base method for all cases that your override method does not handle.