1 |
using System; |
2 |
using System.Collections.Generic; |
3 |
using System.ComponentModel; |
4 |
using System.Drawing; |
5 |
using System.Data; |
6 |
using System.Linq; |
7 |
using System.Text; |
8 |
using System.Windows.Forms; |
9 |
|
10 |
namespace System.Windows.Forms |
11 |
{ |
12 |
public partial class FloatBox : NumericBoxBase |
13 |
{ |
14 |
public FloatBox() |
15 |
: base() |
16 |
{ |
17 |
InitializeComponent(); |
18 |
this.Value = 0; |
19 |
this.ReadOnly = false; |
20 |
} |
21 |
|
22 |
new public float Value |
23 |
{ |
24 |
get { return this.ToSingle(); } |
25 |
set { base.Value = value; } |
26 |
} |
27 |
public override string Text |
28 |
{ |
29 |
get { return base.Text; } |
30 |
set { base.Text = value; } |
31 |
} |
32 |
} |
33 |
} |