NanoByte.Common
Public Member Functions | Protected Member Functions | List of all members
NanoByte.Common.Undo.FirstExecuteCommand Class Referenceabstract

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

Inheritance diagram for NanoByte.Common.Undo.FirstExecuteCommand:
NanoByte.Common.Undo.IUndoCommand NanoByte.Common.Undo.PreExecutedCommand NanoByte.Common.Undo.MultiPropertyChangedCommand NanoByte.Common.Undo.PreExecutedCompositeCommand NanoByte.Common.Undo.PropertyChangedCommand

Public Member Functions

void Execute ()
 Performs the desired action. More...
 
virtual void Undo ()
 Undoes the changes made by Execute. More...
 

Protected Member Functions

abstract void OnFirstExecute ()
 Template method to perform the desired action the first time. More...
 
abstract void OnRedo ()
 Template method to perform the desired action again. More...
 
abstract void OnUndo ()
 Template method to undo the changes made by OnFirstExecute or OnRedo. More...
 

Detailed Description

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

Member Function Documentation

◆ Execute()

void NanoByte.Common.Undo.FirstExecuteCommand.Execute ( )
inline

Performs the desired action.

Implements NanoByte.Common.Undo.IUndoCommand.

◆ OnFirstExecute()

abstract void NanoByte.Common.Undo.FirstExecuteCommand.OnFirstExecute ( )
protectedpure virtual

Template method to perform the desired action the first time.

Implemented in NanoByte.Common.Undo.PreExecutedCommand.

◆ OnRedo()

abstract void NanoByte.Common.Undo.FirstExecuteCommand.OnRedo ( )
protectedpure virtual

◆ OnUndo()

abstract void NanoByte.Common.Undo.FirstExecuteCommand.OnUndo ( )
protectedpure virtual

◆ Undo()

virtual void NanoByte.Common.Undo.FirstExecuteCommand.Undo ( )
inlinevirtual

Undoes the changes made by Execute.

Implements NanoByte.Common.Undo.IUndoCommand.


The documentation for this class was generated from the following file: