mirror of
https://github.com/mirror/processhacker
synced 2026-06-08 16:03:24 +00:00
b02427417c
git-svn-id: svn://svn.code.sf.net/p/processhacker/code@5614 21ef857c-d57f-4fe0-8362-d861dc6d29cd
47 lines
1.1 KiB
C#
47 lines
1.1 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
using System.Drawing;
|
|
using System.Windows.Forms;
|
|
using System.Reflection;
|
|
using System.ComponentModel;
|
|
|
|
namespace Aga.Controls.Tree.NodeControls
|
|
{
|
|
public class NodeDecimalTextBox : NodeTextBox
|
|
{
|
|
private bool _allowDecimalSeperator = true;
|
|
[DefaultValue(true)]
|
|
public bool AllowDecimalSeperator
|
|
{
|
|
get { return _allowDecimalSeperator; }
|
|
set { _allowDecimalSeperator = value; }
|
|
}
|
|
|
|
private bool _allowNegativeSign = true;
|
|
[DefaultValue(true)]
|
|
public bool AllowNegativeSign
|
|
{
|
|
get { return _allowNegativeSign; }
|
|
set { _allowNegativeSign = value; }
|
|
}
|
|
|
|
public NodeDecimalTextBox()
|
|
{
|
|
}
|
|
|
|
protected override TextBox CreateTextBox()
|
|
{
|
|
NumericTextBox textBox = new NumericTextBox();
|
|
textBox.AllowDecimalSeperator = AllowDecimalSeperator;
|
|
textBox.AllowNegativeSign = AllowNegativeSign;
|
|
return textBox;
|
|
}
|
|
|
|
protected override void DoApplyChanges(TreeNodeAdv node, Control editor)
|
|
{
|
|
SetValue(node, (editor as NumericTextBox).DecimalValue);
|
|
}
|
|
}
|
|
}
|