コード例 #1
0
        public void addNodes(DataSets.dsModuleStructure3.dtStepCompositeRow row, TreeNode parentNode)
        {
            TreeNode treeNode = new StepCompositeNode(row);
            DataSets.dsModuleStructure3.dtModuleRow module = getSelectedModuleRow();

            if(row.dtModuleRow.fk_module_type == module.fk_module_type)
            {
                if (parentNode == null)
                {
                    tlvSteps.Nodes.Add(treeNode);
                }
                else
                {
                    parentNode.Nodes.Add(treeNode);
                }

                foreach (DataSets.dsModuleStructure3.dtStepCompositeRow childRows in row.GetdtStepCompositeRows())
                {
                    addNodes(childRows, treeNode);
                }

                foreach (DataSets.dsModuleStructure3.dtStepLeafRow stepLeafRow in row.GetdtStepLeafRows())
                {
                    TreeNode stepLeafNode = new StepLeafNode(stepLeafRow, _dsModuleStructure.dtActionValue);
                    treeNode.Nodes.Add(stepLeafNode);
                }
            }
        }
コード例 #2
0
        public void addNodes(DataSets.dsModuleStructure2.dtStepCompositeRow row, TreeNode parentNode)
        {
            TreeNode treeNode = new StepCompositeNode(row);

            if(parentNode == null)
            {
                tlvSteps.Nodes.Add(treeNode);
            }
            else
            {
                parentNode.Nodes.Add(treeNode);
            }

            foreach (DataSets.dsModuleStructure2.dtStepCompositeRow childRows in row.GetdtStepCompositeRows())
            {
                addNodes(childRows, treeNode);
            }

            foreach (DataSets.dsModuleStructure2.dtStepLeafRow stepLeafRow in row.GetdtStepLeafRows())
            {
                TreeNode stepLeafNode = new StepLeafNode(stepLeafRow);
                treeNode.Nodes.Add(stepLeafNode);
            }
        }