Added support for Intel Xeon E5-2600/1600 v3, Core i7-59xx CPUs (Fixed Issue 617). Corrected an error in the Intel CPU power calculation (wrong bit mask for "Energy Status Units: bits 12:8").
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);