C# Class GuiLabs.Undo.SetPropertyAction

This is a sample action that can change any property on any object It can also undo what it did
Inheritance: AbstractAction
Afficher le fichier Open project: KirillOsenkov/Undo Class Usage Examples

Méthodes publiques

Méthode Description
SetPropertyAction ( object parentObject, string propertyName, object value ) : System.Reflection
TryToMerge ( IAction followingAction ) : bool

Subsequent changes of the same property on the same object are consolidated into one action

Méthodes protégées

Méthode Description
ExecuteCore ( ) : void
UnExecuteCore ( ) : void

Method Details

ExecuteCore() protected méthode

protected ExecuteCore ( ) : void
Résultat void

SetPropertyAction() public méthode

public SetPropertyAction ( object parentObject, string propertyName, object value ) : System.Reflection
parentObject object
propertyName string
value object
Résultat System.Reflection

TryToMerge() public méthode

Subsequent changes of the same property on the same object are consolidated into one action
public TryToMerge ( IAction followingAction ) : bool
followingAction IAction Subsequent action that is being recorded
Résultat bool

UnExecuteCore() protected méthode

protected UnExecuteCore ( ) : void
Résultat void