diff -r 3145aadca3d2 -r 0c551e8818e0 External/Aga.Controls/Tree/TreeModel.cs
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/External/Aga.Controls/Tree/TreeModel.cs Sun May 27 15:16:19 2012 +0000
@@ -0,0 +1,127 @@
+using System;
+using System.Collections.Generic;
+using System.Text;
+using System.Collections.ObjectModel;
+
+namespace Aga.Controls.Tree
+{
+ ///
+ /// Provides a simple ready to use implementation of . Warning: this class is not optimized
+ /// to work with big amount of data. In this case create you own implementation of ITreeModel, and pay attention
+ /// on GetChildren and IsLeaf methods.
+ ///
+ public class TreeModel : ITreeModel
+ {
+ private Node _root;
+ public Node Root
+ {
+ get { return _root; }
+ }
+
+ public Collection Nodes
+ {
+ get { return _root.Nodes; }
+ }
+
+ public TreeModel()
+ {
+ _root = new Node();
+ _root.Model = this;
+ }
+
+ public TreePath GetPath(Node node)
+ {
+ if (node == _root)
+ return TreePath.Empty;
+ else
+ {
+ Stack