Create a demo code container
Inheritance: System.Windows.Forms.TreeNode, IHtmlWriter, ISearchableNode
Example #1
0
        /// <summary>
        /// Load all the exampless into the Tree View control on the LHS
        /// </summary>
        /// <param name="examples">List of examples created by ExamplesGenerator </param>
        public void LoadExamples(IEnumerable<ExampleCode> examples)
        {
            mCategories = new Dictionary<string, CategoryTreeNode>();
            foreach (var example in examples) {
                var cat = LeafCategory(example);

                var exampleNode = new ExampleTreeNode(example);

                cat.Nodes.Add(exampleNode);
            }

            this.ExpandAll();
        }
Example #2
0
        /// <summary>
        /// Load all the exampless into the Tree View control on the LHS
        /// </summary>
        /// <param name="examples">List of examples created by ExamplesGenerator </param>
        public void LoadExamples(IEnumerable <ExampleCode> examples)
        {
            mCategories = new Dictionary <string, CategoryTreeNode>();
            foreach (var example in examples)
            {
                var cat = LeafCategory(example);

                var exampleNode = new ExampleTreeNode(example);

                cat.Nodes.Add(exampleNode);
            }

            this.ExpandAll();
        }