Added the small modifications to the Aga.Controls required by the Open Hardware Monitor.
2 using System.Collections.Generic;
4 using System.ComponentModel;
5 using System.Windows.Forms;
7 namespace Aga.Controls.Tree.NodeControls
10 public class NodeIntegerTextBox : NodeTextBox
12 private bool _allowNegativeSign = true;
14 public bool AllowNegativeSign
16 get { return _allowNegativeSign; }
17 set { _allowNegativeSign = value; }
20 public NodeIntegerTextBox()
24 protected override TextBox CreateTextBox()
26 NumericTextBox textBox = new NumericTextBox();
27 textBox.AllowDecimalSeparator = false;
28 textBox.AllowNegativeSign = AllowNegativeSign;
32 protected override void DoApplyChanges(TreeNodeAdv node, Control editor)
34 SetValue(node, (editor as NumericTextBox).IntValue);