Added the source code of Aga.Controls (TreeViewAdv for .Net) version 1.7.0.0.
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);