Table of Contents

Class PreExecutedCompositeCommand

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

Combines multiple already executed IUndoCommands into a single atomic transaction.

public class PreExecutedCompositeCommand : PreExecutedCommand, IUndoCommand
Inheritance
object
PreExecutedCompositeCommand
Implements
Inherited Members
Extension Methods

Constructors

PreExecutedCompositeCommand(IEnumerable<IUndoCommand>)

Combines multiple already executed IUndoCommands into a single atomic transaction.

public PreExecutedCompositeCommand(IEnumerable<IUndoCommand> commands)

Parameters

commands IEnumerable<IUndoCommand>

The commands to be contained inside the transaction.

Properties

Commands

The commands contained inside the transaction.

public IReadOnlyList<IUndoCommand> Commands { get; }

Property Value

IReadOnlyList<IUndoCommand>

Methods

OnRedo()

Executes all the contained IUndoCommands in order.

protected override void OnRedo()

OnUndo()

Undoes all the contained IUndoCommands in reverse order.

protected override void OnUndo()