Fixed Issue 387. The new implementation does not try to start a ring 0 driver that already exists, but could not be opened. It tries to delete the driver and install it new. The driver is now stored temporarily in the application folder. The driver is not correctly removed on system shutdown.
3 using System.Collections.ObjectModel;
5 namespace Aga.Controls.Tree
9 [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2104:DoNotDeclareReadOnlyMutableReferenceTypes")]
10 public static readonly TreePath Empty = new TreePath();
12 private object[] _path;
13 public object[] FullPath
18 public object LastNode
23 return _path[_path.Length - 1];
29 public object FirstNode
42 _path = new object[0];
45 public TreePath(object node)
47 _path = new object[] { node };
50 public TreePath(object[] path)
55 public TreePath(TreePath parent, object node)
57 _path = new object[parent.FullPath.Length + 1];
58 for (int i = 0; i < _path.Length - 1; i++)
59 _path[i] = parent.FullPath[i];
60 _path[_path.Length - 1] = node;
65 return (_path.Length == 0);