Example #1
0
        private void Form_TreeCheck_Load(object sender, EventArgs e)
        {
            runToolStripMenuItem.Click          += ToolStripMenuItem_Click;
            collapseToolStripMenuItem.Click     += ToolStripMenuItem_Click;
            addToNewPackToolStripMenuItem.Click += ToolStripMenuItem_Click;
            ExtensionIndex.Add("FloderClosed", 0);
            ExtensionIndex.Add(".dll", 7);
            ExtensionIndex.Add(".xml", 8);
            ExtensionIndex.Add(".txt", 6);
            ExtensionIndex.Add(".ini", 0);
            ExtensionIndex.Add(".log", 6);
            ExtensionIndex.Add(".html", 6);
            ExtensionIndex.Add(".htm", 6);
            TreeNode Root = new TreeNode();

            Root.Text = "eCAT";
            GetAllNode(ref Root, XDCUnity.eCATPath);
            Root.Expand();
            treeView1.Nodes.Add(Root);


            PackList = new BindingList <PackListView>();
            PackList.Add(new PackListView("Inservice.dll", "dll", @"C:\\Inservice.dll"));
            dataGridView1.DataSource = PackList;
        }
Example #2
0
        private void Form_TreeCheck_Load(object sender, EventArgs e)
        {
            ExtensionIndex.Add("FloderClosed", 0);
            ExtensionIndex.Add(".dll", 7);
            ExtensionIndex.Add(".xml", 8);
            ExtensionIndex.Add(".txt", 6);
            ExtensionIndex.Add(".ini", 0);
            ExtensionIndex.Add(".log", 6);
            ExtensionIndex.Add(".html", 6);
            ExtensionIndex.Add(".htm", 6);
            string path = @"F:\GRGBanking\VPBank_eCAT_03_04\eCAT";

            TreeNode Root = new TreeNode();

            Root.Text = "eCAT";
            GetAllNode(ref Root, path);

            treeView1.Nodes.Add(Root);
        }