C# 클래스 GuiLabs.Undo.AbstractAction

상속: IAction
파일 보기 프로젝트 열기: KirillOsenkov/Undo

공개 메소드들

메소드 설명
CanExecute ( ) : bool
CanUnExecute ( ) : bool
Execute ( ) : void
TryToMerge ( IAction followingAction ) : bool

If the last action can be joined with the followingAction, the following action isn't added to the Undo stack, but rather mixed together with the current one.

UnExecute ( ) : void

보호된 메소드들

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

메소드 상세

CanExecute() 공개 메소드

public CanExecute ( ) : bool
리턴 bool

CanUnExecute() 공개 메소드

public CanUnExecute ( ) : bool
리턴 bool

Execute() 공개 메소드

public Execute ( ) : void
리턴 void

ExecuteCore() 보호된 추상적인 메소드

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

TryToMerge() 공개 메소드

If the last action can be joined with the followingAction, the following action isn't added to the Undo stack, but rather mixed together with the current one.
public TryToMerge ( IAction followingAction ) : bool
followingAction IAction
리턴 bool

UnExecute() 공개 메소드

public UnExecute ( ) : void
리턴 void

UnExecuteCore() 보호된 추상적인 메소드

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