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

An undo command that automatically tracks when Execute and Undo can be called.
상속: IUndoCommand
파일 보기 프로젝트 열기: nano-byte/common

공개 메소드들

메소드 설명
Execute ( ) : void

Performs the desired action.

Undo ( ) : void

Undoes the changes made by Execute.

보호된 메소드들

메소드 설명
OnExecute ( ) : void

Template method to perform the desired action.

OnUndo ( ) : void

Template method to undo the changes made by OnExecute.

메소드 상세

Execute() 공개 메소드

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

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

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

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

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

Undo() 공개 메소드

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