コード例 #1
0
        private void LoadTree(int menutype)
        {
            TreeView1.Nodes.Clear();
            AdministrationDAC dac = new AdministrationDAC();
            var menus             = dac.RetrieveMenuExplorers(menutype);


            TreeNode newNode = new TreeNode("Home", "0");

            TreeView1.Nodes.Add(newNode);
            BuildMenuItemTree(null, 1, 0, menus, 0);
            //newNode = new TreeNode("Contact Us", "999");
            //TreeView1.Nodes.Add(newNode);
        }