NanoByte.Common
2.6.1
|
An undo command that handles multiple changed properties - usually used with a PropertyGrid. More...
Public Member Functions | |
MultiPropertyChangedCommand (object[] targets, PropertyDescriptor property, object?[] oldValues, object? newValue) | |
Initializes the command after the properties were first changed. More... | |
MultiPropertyChangedCommand (object[] targets, GridItem gridItem, object?[] oldValues) | |
Initializes the command after the property was first changed. More... | |
![]() | |
void | Execute () |
Performs the desired action. More... | |
virtual void | Undo () |
Undoes the changes made by Execute. More... | |
Protected Member Functions | |
override void | OnRedo () |
Set the changed property value again. More... | |
override void | OnUndo () |
Restore the original property values. More... | |
![]() | |
sealed override void | OnFirstExecute () |
Do nothing on first execute. More... | |
An undo command that handles multiple changed properties - usually used with a PropertyGrid.
|
inline |
Initializes the command after the properties were first changed.
targets | The objects the property belongs to. |
property | The property that was changed. |
oldValues | The property's old values. |
newValue | The property's current value. |
|
inline |
Initializes the command after the property was first changed.
targets | The objects the PropertyGrid.SelectedObject is target at. |
gridItem | The grid item representing the property being changed. |
oldValues | The property's old values. |
|
inlineprotectedvirtual |
Set the changed property value again.
Implements NanoByte.Common.Undo.FirstExecuteCommand.
|
inlineprotectedvirtual |
Restore the original property values.
Implements NanoByte.Common.Undo.FirstExecuteCommand.