Added the small modifications to the Aga.Controls required by the Open Hardware Monitor.
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)