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
Exibir arquivo Open project: kasicass/kasicass Class Usage Examples

Public Methods

Method 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

Protected Methods

Method 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 method

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

SetPropertyAction() public method

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.
return System.ComponentModel

SetPropertyAction() public method

public SetPropertyAction ( object parentObject, string propertyName, object value, object oldValue ) : System.ComponentModel
parentObject object
propertyName string
value object
oldValue object
return System.ComponentModel

TryToMerge() public method

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
return bool

UnExecuteCore() protected method

Override this to provide the logic that undoes the action
protected UnExecuteCore ( ) : void
return void