using System; using System.Collections.Generic; using System.Text; using Aga.Controls.Tree; namespace SampleApp { public class PerformaceTestModel : ITreeModel { List _items = new List(); public PerformaceTestModel(int count) { for (int i = 0; i < count; i++) _items.Add(new Node(i.ToString())); } public System.Collections.IEnumerable GetChildren(TreePath treePath) { return _items; } public bool IsLeaf(TreePath treePath) { return true; } public event EventHandler NodesChanged; public event EventHandler NodesInserted; public event EventHandler NodesRemoved; public event EventHandler StructureChanged; } }