C# Class NanoByte.Common.Undo.FirstExecuteCommand

An undo command that does something different on the first call to Execute than on subsequent redo calls.
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
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.

Method Details

Execute() public méthode

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

OnFirstExecute() protected abstract méthode

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

OnRedo() protected abstract méthode

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

OnUndo() protected abstract méthode

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

Undo() public méthode

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