private bool HandleEditReplicationGuide(GraphCommand command) { uint nodeId = (uint)command.GetArgument(0); int replicationIndex = (int)command.GetArgument(1); VisualNode node = this.GetVisualNode(nodeId); node.EnableEdit(NodePart.ReplicationGuide, replicationIndex); return(true); }
private bool HandleBeginNodeEdit(GraphCommand command) { uint nodeId = (uint)command.GetArgument(0); NodePart nodePart = ((NodePart)command.GetArgument(1)); VisualNode node = this.GetVisualNode(nodeId); if (nodePart == NodePart.Text) { this.previousText = node.Text; } else if (nodePart == NodePart.Caption) { this.previousText = node.Caption; } node.EnableEdit(nodePart, -1); return(true); }