private void GetBranchingNodePortList() { var portFiltered = InstancePorts.ToList(); branchPorts = portFiltered .Where(x => x.ValueType == typeof(ChoiceBranch)) .ToList(); }
private void BindExecutionsToButtons() { buttonPorts = InstancePorts .ToList() .Where(x => x.IsConnected && x.Connection.node.GetType().IsSubclassOf(typeof(AbstractExecutionNode))) .ToList(); for (int i = 0; i < buttonPorts.Count; i++) { ExecuteCommandsInPort(i); } }