コード例 #1
0
        private void GetBranchingNodePortList()
        {
            var portFiltered = InstancePorts.ToList();

            branchPorts = portFiltered
                          .Where(x => x.ValueType == typeof(ChoiceBranch))
                          .ToList();
        }
コード例 #2
0
 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);
     }
 }