Added the source code of Aga.Controls (TreeViewAdv for .Net) version 1.7.0.0.

This commit is contained in:
Michael Möller
2012-05-27 15:16:19 +00:00
parent 2e3489e1f7
commit 998a139aff
95 changed files with 10860 additions and 0 deletions
@@ -0,0 +1,37 @@
using System;
using System.Collections.Generic;
using System.Text;
using System.ComponentModel;
using System.Windows.Forms;
namespace Aga.Controls.Tree.NodeControls
{
public class NodeIntegerTextBox : NodeTextBox
{
private bool _allowNegativeSign = true;
[DefaultValue(true)]
public bool AllowNegativeSign
{
get { return _allowNegativeSign; }
set { _allowNegativeSign = value; }
}
public NodeIntegerTextBox()
{
}
protected override TextBox CreateTextBox()
{
NumericTextBox textBox = new NumericTextBox();
textBox.AllowDecimalSeparator = false;
textBox.AllowNegativeSign = AllowNegativeSign;
return textBox;
}
protected override void DoApplyChanges(TreeNodeAdv node, Control editor)
{
SetValue(node, (editor as NumericTextBox).IntValue);
}
}
}