SharpDisplay: Migrating to new robust client scheme.
2 using System.Collections.Generic;
5 namespace Aga.Controls.Tree
7 public class TreeModelEventArgs: TreePathEventArgs
9 private object[] _children;
10 public object[] Children
12 get { return _children; }
15 private int[] _indices;
18 get { return _indices; }
24 /// <param name="parent">Path to a parent node</param>
25 /// <param name="children">Child nodes</param>
26 public TreeModelEventArgs(TreePath parent, object[] children)
27 : this(parent, null, children)
34 /// <param name="parent">Path to a parent node</param>
35 /// <param name="indices">Indices of children in parent nodes collection</param>
36 /// <param name="children">Child nodes</param>
37 public TreeModelEventArgs(TreePath parent, int[] indices, object[] children)
41 throw new ArgumentNullException();
43 if (indices != null && indices.Length != children.Length)
44 throw new ArgumentException("indices and children arrays must have the same length");