Table of Contents

Class CompositeCommand

Namespace
FlowGraph.Core.Commands
Assembly
FlowGraph.Core.dll

Command that groups multiple commands into a single undoable operation.

public class CompositeCommand : IGraphCommand
Inheritance
CompositeCommand
Implements
Inherited Members

Constructors

CompositeCommand(string, params IGraphCommand[])

Creates a composite command with a custom description.

public CompositeCommand(string description, params IGraphCommand[] commands)

Parameters

description string
commands IGraphCommand[]

CompositeCommand(string, IEnumerable<IGraphCommand>)

Creates a composite command with a custom description.

public CompositeCommand(string description, IEnumerable<IGraphCommand> commands)

Parameters

description string
commands IEnumerable<IGraphCommand>

Properties

Description

Gets a human-readable description of the command.

public string Description { get; }

Property Value

string

Methods

Execute()

Executes the command.

public void Execute()

Undo()

Reverses the command (undo).

public void Undo()