public void Add(WorkflowNode node) { if (node.Guid == Guid.Empty) node.Guid = Guid.NewGuid(); if (Nodes.Any(x => x.Guid == node.Guid)) throw new Exception("a node with this guid already exists"); Nodes.Add(node); }
protected internal WorkflowGraphMemo(WorkflowNode[] workflowNodes, Tuple<Pin, Pin>[] connections) { m_workflowNodes = workflowNodes; m_connections = connections; }