/// <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(); }
/// <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(); }