C# Class Illusion.SetPropertyAction

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

Méthodes publiques

Méthode Description
SetPropertyAction ( object parentObject, string propertyName, object value ) : System.ComponentModel

Initializes a new instance of the SetPropertyAction class.

SetPropertyAction ( object parentObject, string propertyName, object value, object oldValue ) : System.ComponentModel
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

Override execute core to provide your logic that actually performs the action

UnExecuteCore ( ) : void

Override this to provide the logic that undoes the action

Method Details

ExecuteCore() protected méthode

Override execute core to provide your logic that actually performs the action
protected ExecuteCore ( ) : void
Résultat void

SetPropertyAction() public méthode

Initializes a new instance of the SetPropertyAction class.
public SetPropertyAction ( object parentObject, string propertyName, object value ) : System.ComponentModel
parentObject object The parent object.
propertyName string Name of the property.
value object The value.
Résultat System.ComponentModel

SetPropertyAction() public méthode

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

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

Override this to provide the logic that undoes the action
protected UnExecuteCore ( ) : void
Résultat void