C# Class NanoByte.Common.Undo.SimpleCommand

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

Méthodes publiques

Méthode Description
Execute ( ) : void

Performs the desired action.

Undo ( ) : void

Undoes the changes made by Execute.

Méthodes protégées

Méthode 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 méthode

Performs the desired action.
public Execute ( ) : void
Résultat void

OnExecute() protected abstract méthode

Template method to perform the desired action.
protected abstract OnExecute ( ) : void
Résultat void

OnUndo() protected abstract méthode

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

Undo() public méthode

Undoes the changes made by Execute.
public Undo ( ) : void
Résultat void