C# Class NanoByte.Common.Undo.MultiPropertyChangedCommand

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

Méthodes publiques

Méthode Description
MultiPropertyChangedCommand ( [ targets, [ property, [ oldValues, object newValue ) : System

Initializes the command after the properties were first changed.

Méthodes protégées

Méthode Description
OnRedo ( ) : void

Set the changed property value again.

OnUndo ( ) : void

Restore the original property values.

Private Methods

Méthode Description
MultiPropertyChangedCommand ( [ targets, [ gridItem, [ oldValues ) : System

Method Details

MultiPropertyChangedCommand() public méthode

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.
Résultat System

OnRedo() protected méthode

Set the changed property value again.
protected OnRedo ( ) : void
Résultat void

OnUndo() protected méthode

Restore the original property values.
protected OnUndo ( ) : void
Résultat void