C# Class NanoByte.Common.Undo.PropertyChangedCommand

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

Méthodes publiques

Méthode Description
PropertyChangedCommand ( object target, PropertyDescriptor property, object oldValue, object newValue ) : System.ComponentModel

Initializes the command after the property was first changed.

Méthodes protégées

Méthode Description
OnRedo ( ) : void

Set the changed property value again.

OnUndo ( ) : void

Restore the original property value.

Private Methods

Méthode Description
PropertyChangedCommand ( object target, System.Windows.Forms.PropertyValueChangedEventArgs e ) : System.ComponentModel

Method Details

OnRedo() protected méthode

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

OnUndo() protected méthode

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

PropertyChangedCommand() public méthode

Initializes the command after the property was first changed.
public PropertyChangedCommand ( object target, PropertyDescriptor property, object oldValue, object newValue ) : System.ComponentModel
target object The object the property belongs to.
property System.ComponentModel.PropertyDescriptor The property that was changed.
oldValue object The property's old value.
newValue object The property's current value.
Résultat System.ComponentModel