Create a demo code container
Наследование: System.Windows.Forms.TreeNode, IHtmlWriter, ISearchableNode
Пример #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();
        }
Пример #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();
        }