Ejemplo n.º 1
0
        //----------------------------------------------//
        private void btnOpen_Click(object sender, EventArgs e)
        {
            jLib = new clJobFileLib();

            jLib.readFromFile(txtFileName.Text);

            treeKeys.Nodes.Clear();

            fillTreeView(treeKeys.Nodes, jLib, 0);
        }
Ejemplo n.º 2
0
        //---------------------------------------------------//
        private void fillTreeView(TreeNodeCollection currentTreeNode, clJobFileLib jLib, int keyID)
        {
            int id = jLib.getFirstKeyChild(keyID);

            while (id > 0)
            {
                TreeNode treeNode = new TreeNode(jLib.getKeyName(id), id, id);
                currentTreeNode.Add(treeNode);

                fillTreeView(treeNode.Nodes, jLib, id);

                id = jLib.getNextKeyChild(id);
            }
        }
Ejemplo n.º 3
0
        //---------------------------------------------------//
        private void fillTreeView(TreeNodeCollection currentTreeNode, clJobFileLib jLib, int keyID)
        {
            int id = jLib.getFirstKeyChild(keyID);
            while (id > 0)
            {
                TreeNode treeNode = new TreeNode(jLib.getKeyName(id), id, id);
                currentTreeNode.Add(treeNode);

                fillTreeView(treeNode.Nodes, jLib, id);

                id = jLib.getNextKeyChild(id);
            }

        }
Ejemplo n.º 4
0
        //----------------------------------------------//
        private void btnOpen_Click(object sender, EventArgs e)
        {
            jLib = new clJobFileLib();

            jLib.readFromFile(txtFileName.Text);

            treeKeys.Nodes.Clear();

            fillTreeView(treeKeys.Nodes, jLib, 0);
        }