NanoByte.Common
Public Member Functions | Protected Member Functions | List of all members
NanoByte.Common.Undo.PreExecutedCompositeCommand Class Reference

Combines multiple already executed IUndoCommands into a single atomic transaction. More...

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

Public Member Functions

 PreExecutedCompositeCommand ([NotNull] IEnumerable< IUndoCommand > commands)
 Creates a new composite command. More...
 
- Public Member Functions inherited from NanoByte.Common.Undo.FirstExecuteCommand
void Execute ()
 Performs the desired action. More...
 
virtual void Undo ()
 Undoes the changes made by Execute. More...
 

Protected Member Functions

override void OnRedo ()
 Executes all the contained IUndoCommands in order. More...
 
override void OnUndo ()
 Undoes all the contained IUndoCommands in reverse order. More...
 
- Protected Member Functions inherited from NanoByte.Common.Undo.PreExecutedCommand
sealed override void OnFirstExecute ()
 Do nothing on first execute. More...
 

Detailed Description

Combines multiple already executed IUndoCommands into a single atomic transaction.

Constructor & Destructor Documentation

◆ PreExecutedCompositeCommand()

NanoByte.Common.Undo.PreExecutedCompositeCommand.PreExecutedCompositeCommand ( [NotNull] IEnumerable< IUndoCommand commands)
inline

Creates a new composite command.

Parameters
commandsThe commands to be contained inside the transaction.

Member Function Documentation

◆ OnRedo()

override void NanoByte.Common.Undo.PreExecutedCompositeCommand.OnRedo ( )
inlineprotectedvirtual

Executes all the contained IUndoCommands in order.

Implements NanoByte.Common.Undo.FirstExecuteCommand.

◆ OnUndo()

override void NanoByte.Common.Undo.PreExecutedCompositeCommand.OnUndo ( )
inlineprotectedvirtual

Undoes all the contained IUndoCommands in reverse order.

Implements NanoByte.Common.Undo.FirstExecuteCommand.


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