Some modifications to the OxyPlot library to back-port to .NET 2.0. Added the LINQBridge library for the LINQ based code in OxyPlot (the original .NET LINQ is not available in .NET 2.0).
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);