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 : NumericBox |
13 |
{ |
14 |
public FloatBox() |
15 |
{ |
16 |
InitializeComponent(); |
17 |
this.Value = 0; |
18 |
this.ReadOnly = false; |
19 |
} |
20 |
|
21 |
new public float Value |
22 |
{ |
23 |
get { return this.ToSingle(); } |
24 |
set { base.Value = value; } |
25 |
} |
26 |
|
27 |
|
28 |
public override string Text |
29 |
{ |
30 |
get { return base.Text; } |
31 |
set { base.Text = value; } |
32 |
} |
33 |
|
34 |
public override bool ReadOnly |
35 |
{ |
36 |
get { return base.ReadOnly; } |
37 |
set { base.ReadOnly = value; } |
38 |
} |
39 |
} |
40 |
} |