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

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

Inheritance diagram for NanoByte.Common.Undo.CompositeCommand:
NanoByte.Common.Undo.SimpleCommand NanoByte.Common.Undo.IUndoCommand

Public Member Functions

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

Protected Member Functions

override void OnExecute ()
 Executes all the contained IUndoCommands in order. More...
 
override void OnUndo ()
 Undoes all the contained IUndoCommands in reverse order. More...
 

Detailed Description

Combines multiple IUndoCommands into a single atomic transaction.

Constructor & Destructor Documentation

◆ CompositeCommand()

NanoByte.Common.Undo.CompositeCommand.CompositeCommand ( [NotNull] params IUndoCommand []  commands)
inline

Creates a new composite command.

Parameters
commandsThe commands to be contained inside the transaction.

Member Function Documentation

◆ OnExecute()

override void NanoByte.Common.Undo.CompositeCommand.OnExecute ( )
inlineprotectedvirtual

Executes all the contained IUndoCommands in order.

Implements NanoByte.Common.Undo.SimpleCommand.

◆ OnUndo()

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

Undoes all the contained IUndoCommands in reverse order.

Implements NanoByte.Common.Undo.SimpleCommand.


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