public override void Populate(SerializeableNodeViewModel node) { base.Populate(node); SerializeableVariableNode v = node as SerializeableVariableNode; this.Type = v.TypeString; this.CallingClass = node.CallingClass; }
public virtual void Populate(SerializeableNodeViewModel node) { this.ID = node.ID; this.NodeName = node.NodeName; this.Margin = new Thickness(node.MarginX, node.MarginY, 0, 0); //decreases potential for duplicate nodes when loading in nodes from file by making sure IDs of new nodes can never be within the range of the files' nodes if (this.ID > TotalIDCount) { TotalIDCount = this.ID; } }
public override void Populate(SerializeableNodeViewModel node) { base.Populate(node); SerializeableConditionNode ser = (node as SerializeableConditionNode); this.InExecutionConnector.ConnectionNodeID = ser.InputNodeID; this.OutExecutionConnectorFalse.ConnectionNodeID = ser.OutputFalseNodeID; this.OutExecutionConnectorTrue.ConnectionNodeID = ser.OutputTrueNodeID; this.boolInput.ConnectionNodeID = ser.BoolVariableID; this.ConnectedToVariableCallerClassName = ser.BoolCallingClass; this.CallingClass = node.CallingClass; }
public override void Populate(SerializeableNodeViewModel node) { base.Populate(node); //connectors this.InExecutionConnector.ConnectionNodeID = (node as SerializeableDynamicNode).InputNodeID; this.OutExecutionConnector.ConnectionNodeID = (node as SerializeableDynamicNode).OutputNodeID; var arguments = (node as SerializeableDynamicNode).Arguments; foreach (var arg in arguments) { AddArgument(arg.ArgTypeString, arg.Name, arg.ArgIsExistingVariable, arg.ArgumentConnectedToNodeID, arg.ArgValue); } this.CallingClass = node.CallingClass; }
public override void Populate(SerializeableNodeViewModel node) { base.Populate(node); this.MainConnector.ConnectionNodeID = (node as SerializeableRootNode).OutputNodeID; }
public override void Populate(SerializeableNodeViewModel node) { throw new NotImplementedException(); }