Esempio n. 1
0
        public override object Clone()
        {
            frmTreeNode node = base.Clone() as frmTreeNode;

            this.NodesCopy(this.Nodes, node.Nodes);
            node.Name        = this.Name;
            node.Tag         = this.Tag;
            node.Text        = this.Text;
            node.parameters  = this.parameters;
            node.returnvalue = this.returnvalue;
            return(node);
        }
Esempio n. 2
0
        /// <summary>
        /// [TEST] 자동완성기능 테스트 데이터
        /// </summary>
        private void setTestAutoword()
        {
            frmTreeNode node = new frmTreeNode("container");

            node.Name = "container";
            node.Text = "container description";
            node.Tag  = "class";
            frmTreeNode node_1 = new frmTreeNode("popscreen");

            node_1.Name = "popscreen";
            node_1.Text = "Description : container popscreen method";
            node_1.Tag  = "method";
            frmTreeNode node_2 = new frmTreeNode("popscreen1");

            node_2.Name = "popscreen1";
            node_2.Text = "Description : container popscreen method";
            node_2.Tag  = "method";
            frmTreeNode node_3 = new frmTreeNode("popscreen2");

            node_3.Name = "popscreen3";
            node_3.Text = "Description : container popscreen3 method";
            node_3.Tag  = "method";
            frmTreeNode node_4 = new frmTreeNode("popscreen4");

            node_4.Name = "popscreen4";
            node_4.Text = "Description : container popscreen method";
            node_4.Tag  = "method";
            frmTreeNode node_5 = new frmTreeNode("popscreen5");

            node_5.Name = "popscreen5";
            node_5.Text = "Description : container popscreen method";
            node_5.Tag  = "method";
            frmTreeNode node_6 = new frmTreeNode("popscreen6");

            node_6.Name = "popscreen6";
            node_6.Text = "Description : container popscreen method";
            node_6.Tag  = "method";
            frmTreeNode node_7 = new frmTreeNode("popscreen7");

            node_7.Name = "popscreen7";
            node_7.Text = "Description : container popscreen method";
            node_7.Tag  = "method";
            node.Nodes.Add(node_1);
            node.Nodes.Add(node_2);
            node.Nodes.Add(node_3);
            node.Nodes.Add(node_4);
            node.Nodes.Add(node_5);
            node.Nodes.Add(node_6);
            node.Nodes.Add(node_7);
            nodeList.Add(node);
        }
Esempio n. 3
0
        //public frmTreeNode innerNodes(frmTreeNode sourceNode, frmTreeNode targetNode)
        //{
        //    foreach (frmTreeNode node in sourceNode.Nodes)
        //    {
        //        frmTreeNode tmpNode = new frmTreeNode(node.Text);
        //        tmpNode.parameters = node.parameters;
        //        tmpNode.returnvalue = node.returnvalue;
        //        if (node.Nodes.Count > 0)
        //        {
        //            innerNodes(node.Nodes
        //        }
        //        targetNode.Nodes.Add();
        //    }
        //}

        public List <frmTreeNode> NodesCopy(List <frmTreeNode> sourceNodes, List <frmTreeNode> targetNodes)
        {
            foreach (frmTreeNode sNode in sourceNodes)
            {
                frmTreeNode tmpNode = new frmTreeNode();
                tmpNode.Name        = sNode.Name;
                tmpNode.Text        = sNode.Text;
                tmpNode.parameters  = sNode.parameters;
                tmpNode.returnvalue = sNode.returnvalue;
                tmpNode.Tag         = sNode.Tag;
                NodesCopy(sNode.Nodes, tmpNode.Nodes);
                targetNodes.Add(tmpNode);
            }
            return(targetNodes);
        }