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.
2 using System.Collections.Generic;
5 using Aga.Controls.Properties;
7 namespace Aga.Controls.Tree.NodeControls
9 public class NodeStateIcon: NodeIcon
12 private Image _opened;
13 private Image _closed;
15 public NodeStateIcon()
17 _leaf = MakeTransparent(Resources.Leaf);
18 _opened = MakeTransparent(Resources.Folder);
19 _closed = MakeTransparent(Resources.FolderClosed);
22 private static Image MakeTransparent(Bitmap bitmap)
24 bitmap.MakeTransparent(bitmap.GetPixel(0,0));
28 protected override Image GetIcon(TreeNodeAdv node)
30 Image icon = base.GetIcon(node);
35 else if (node.CanExpand && node.IsExpanded)