C# 클래스 Illusion.SetPropertyAction

This is a concrete AbstractAction that can change any property on any object It can also undo what it did
상속: AbstractAction
파일 보기 프로젝트 열기: kasicass/kasicass 1 사용 예제들

공개 메소드들

메소드 설명
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

보호된 메소드들

메소드 설명
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

메소드 상세

ExecuteCore() 보호된 메소드

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

SetPropertyAction() 공개 메소드

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.
리턴 System.ComponentModel

SetPropertyAction() 공개 메소드

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

TryToMerge() 공개 메소드

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
리턴 bool

UnExecuteCore() 보호된 메소드

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