C# Class NanoByte.Common.Undo.SimpleCommand

An undo command that automatically tracks when Execute and Undo can be called.
Inheritance: IUndoCommand
Mostrar archivo Open project: nano-byte/common

Public Methods

Method Description
Execute ( ) : void

Performs the desired action.

Undo ( ) : void

Undoes the changes made by Execute.

Protected Methods

Method Description
OnExecute ( ) : void

Template method to perform the desired action.

OnUndo ( ) : void

Template method to undo the changes made by OnExecute.

Method Details

Execute() public method

Performs the desired action.
public Execute ( ) : void
return void

OnExecute() protected abstract method

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

OnUndo() protected abstract method

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

Undo() public method

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