示例#1
0
        public int RefreshTree()
        {
            if (HierarchyNode == null)
            {
                return(0);
            }
            // Recreate the tree by clearing the tree first
            while (HierarchyNode.FirstChild != null)
            {
                HierarchyNode.FirstChild.Remove();
            }
            // repopulate
            HierarchyNode.Expand(false);

            int no = PopulateTree(HierarchyNode);

            return(no);
        }