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
显示文件 Open project: KirillOsenkov/Undo Class Usage Examples

Public Methods

Method 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

Protected Methods

Method Description
ExecuteCore ( ) : void
UnExecuteCore ( ) : void

Method Details

ExecuteCore() protected method

protected ExecuteCore ( ) : void
return void

SetPropertyAction() public method

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

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

protected UnExecuteCore ( ) : void
return void