Class FirstExecuteCommand
An undo command that does something different on the first call to Execute() than on subsequent redo calls.
Implements
Namespace: NanoByte.Common.Undo
Assembly: NanoByte.Common.dll
Syntax
public abstract class FirstExecuteCommand : Object, IUndoCommand
Constructors
FirstExecuteCommand()
Declaration
protected FirstExecuteCommand()
Methods
Execute()
Performs the desired action.
Declaration
public void Execute()
OnFirstExecute()
Template method to perform the desired action the first time.
Declaration
protected abstract void OnFirstExecute()
OnRedo()
Template method to perform the desired action again.
Declaration
protected abstract void OnRedo()
OnUndo()
Template method to undo the changes made by OnFirstExecute() or OnRedo().
Declaration
protected abstract void OnUndo()
Undo()
Undoes the changes made by Execute().
Declaration
public virtual void Undo()