C# Class NanoByte.Common.Undo.MultiPropertyChangedCommand

An undo command that handles multiple changed properties - usually used with a PropertyGrid.
Inheritance: PreExecutedCommand
Mostrar archivo Open project: nano-byte/common

Public Methods

Method Description
MultiPropertyChangedCommand ( [ targets, [ property, [ oldValues, object newValue ) : System

Initializes the command after the properties were first changed.

Protected Methods

Method Description
OnRedo ( ) : void

Set the changed property value again.

OnUndo ( ) : void

Restore the original property values.

Private Methods

Method Description
MultiPropertyChangedCommand ( [ targets, [ gridItem, [ oldValues ) : System

Method Details

MultiPropertyChangedCommand() public method

Initializes the command after the properties were first changed.
public MultiPropertyChangedCommand ( [ targets, [ property, [ oldValues, object newValue ) : System
targets [ The objects the property belongs to.
property [ The property that was changed.
oldValues [ The property's old values.
newValue object The property's current value.
return System

OnRedo() protected method

Set the changed property value again.
protected OnRedo ( ) : void
return void

OnUndo() protected method

Restore the original property values.
protected OnUndo ( ) : void
return void