public NodeView(Node node) { this.node = node; title = node.name; viewDataKey = node.guid; style.left = node.position.x; style.top = node.position.y; CreateInputPorts(); CreateOutputPorts(); }
void CreateNodeView(Node node) { NodeView nodeView = new NodeView(node); AddElement(nodeView); }
private NodeView FindNodeView(Node node) => GetNodeByGuid(node.guid) as NodeView;
void CreateNode(System.Type type) { Node node = tree.CreateNode(type); CreateNodeView(node); }