Table of Contents

Class FirstExecuteCommand

Namespace
NanoByte.Common.Undo
Assembly
NanoByte.Common.dll

An undo command that does something different on the first call to Execute() than on subsequent redo calls.

public abstract class FirstExecuteCommand : IUndoCommand
Inheritance
FirstExecuteCommand
Implements
Derived
Extension Methods

Methods

Execute()

Performs the desired action.

public void Execute()

OnFirstExecute()

Template method to perform the desired action the first time.

protected abstract void OnFirstExecute()

OnRedo()

Template method to perform the desired action again.

protected abstract void OnRedo()

OnUndo()

Template method to undo the changes made by OnFirstExecute() or OnRedo().

protected abstract void OnUndo()

Undo()

Undoes the changes made by Execute().

public virtual void Undo()