Table of Contents

Class AddNodeCommand

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

Command to add a node to the graph.

public class AddNodeCommand : IGraphCommand
Inheritance
AddNodeCommand
Implements
Inherited Members

Constructors

AddNodeCommand(Graph, Node)

public AddNodeCommand(Graph graph, Node node)

Parameters

graph Graph
node Node

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()