C# 클래스 NanoByte.Common.Undo.FirstExecuteCommand

An undo command that does something different on the first call to Execute than on subsequent redo calls.
상속: IUndoCommand
파일 보기 프로젝트 열기: nano-byte/common

공개 메소드들

메소드 설명
Execute ( ) : void

Performs the desired action.

Undo ( ) : void

Undoes the changes made by Execute.

보호된 메소드들

메소드 설명
OnFirstExecute ( ) : void

Template method to perform the desired action the first time.

OnRedo ( ) : void

Template method to perform the desired action again.

OnUndo ( ) : void

Template method to undo the changes made by OnFirstExecute or OnRedo.

메소드 상세

Execute() 공개 메소드

Performs the desired action.
public Execute ( ) : void
리턴 void

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

Template method to perform the desired action the first time.
protected abstract OnFirstExecute ( ) : void
리턴 void

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

Template method to perform the desired action again.
protected abstract OnRedo ( ) : void
리턴 void

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

Template method to undo the changes made by OnFirstExecute or OnRedo.
protected abstract OnUndo ( ) : void
리턴 void

Undo() 공개 메소드

Undoes the changes made by Execute.
public Undo ( ) : void
리턴 void