Sync: Adding shamap and documentation to enable easier sync next time OHM is updated.
2 using System.Collections.Generic;
4 using System.Collections;
6 namespace Aga.Controls.Tree
8 public class ListModel : TreeModelBase
14 get { return _list.Count; }
19 _list = new List<object>();
22 public ListModel(IList list)
27 public override IEnumerable GetChildren(TreePath treePath)
32 public override bool IsLeaf(TreePath treePath)
37 public void AddRange(IEnumerable items)
39 foreach (object obj in items)
41 OnStructureChanged(new TreePathEventArgs(TreePath.Empty));
44 public void Add(object item)
47 OnNodesInserted(new TreeModelEventArgs(TreePath.Empty, new int[] { _list.Count - 1 }, new object[] { item }));
53 OnStructureChanged(new TreePathEventArgs(TreePath.Empty));