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 System.Windows.Forms;
6 using System.Reflection;
7 using System.ComponentModel;
9 namespace Aga.Controls.Tree.NodeControls
11 public class NodeDecimalTextBox : NodeTextBox
13 private bool _allowDecimalSeparator = true;
15 public bool AllowDecimalSeparator
17 get { return _allowDecimalSeparator; }
18 set { _allowDecimalSeparator = value; }
21 private bool _allowNegativeSign = true;
23 public bool AllowNegativeSign
25 get { return _allowNegativeSign; }
26 set { _allowNegativeSign = value; }
29 protected NodeDecimalTextBox()
33 protected override TextBox CreateTextBox()
35 NumericTextBox textBox = new NumericTextBox();
36 textBox.AllowDecimalSeparator = AllowDecimalSeparator;
37 textBox.AllowNegativeSign = AllowNegativeSign;
41 protected override void DoApplyChanges(TreeNodeAdv node, Control editor)
43 SetValue(node, (editor as NumericTextBox).DecimalValue);