示例#1
0
        /// <summary>
        /// Load all the demos into the Tree View control on the LHS
        /// </summary>
        /// <param name="demos">List of demos created by DemoGenerator </param>
        public void LoadDemos(IEnumerable <ExampleCode> demos)
        {
            mCategories = new Dictionary <string, CategoryTreeNode>();
            foreach (var demo in demos)
            {
                var cat = LeafCategory(demo);

                var demoNode = new ExampleTreeNode(demo);
                cat.Nodes.Add(demoNode);
            }

            this.ExpandAll();
        }
        /// <summary>
        /// Load all the demos into the Tree View control on the LHS
        /// </summary>
        /// <param name="demos">List of demos created by DemoGenerator </param>
        public void LoadDemos(IEnumerable<ExampleCode> demos)
        {
            mCategories = new Dictionary<string, CategoryTreeNode>();
            foreach (var demo in demos)
            {
                var cat = LeafCategory(demo);

                var demoNode = new ExampleTreeNode(demo);
                cat.Nodes.Add(demoNode);
            }

            this.ExpandAll();
        }