예제 #1
0
        public void setValues(String values)
        {
            String[]        valuesToInsert  = values.Split('.');
            List <NodeTree> childsNodeUsing = nodeUsing.getChilds();

            foreach (String item in valuesToInsert)
            {
                if (valuesToInsert[valuesToInsert.Length - 1].Equals("reduce") == false)
                {
                    codeUsing++;

                    NodeTree nodeInsert = new NodeTree("node" + codeUsing.ToString(), item);
                    nodeInsert.setNodeParent(this.nodeUsing);
                    childsNodeUsing.Add(nodeInsert);
                }
            }
            this.nodeUsing.setChilds(childsNodeUsing);
            setNewNodeUsing();
        }