15 |
public FloatingDataTypeConverter() |
public FloatingDataTypeConverter() |
16 |
{ |
{ |
17 |
InitializeComponent(); |
InitializeComponent(); |
18 |
|
chkhexadecimal.Checked = true; |
19 |
|
} |
20 |
|
|
21 |
|
private void chkBinary_CheckedChanged(object sender, EventArgs e) |
22 |
|
{ |
23 |
|
// binary input |
24 |
|
txtInput.InputType = MultiNumericBox_InputType.Binary; |
25 |
|
} |
26 |
|
|
27 |
|
private void chkdecimal_CheckedChanged(object sender, EventArgs e) |
28 |
|
{ |
29 |
|
// decimal input |
30 |
|
txtInput.InputType = MultiNumericBox_InputType.Decimal; |
31 |
|
} |
32 |
|
|
33 |
|
private void chkhexadecimal_CheckedChanged(object sender, EventArgs e) |
34 |
|
{ |
35 |
|
// hex input |
36 |
|
txtInput.InputType = MultiNumericBox_InputType.Hex; |
37 |
|
} |
38 |
|
|
39 |
|
private void chkoctal_CheckedChanged(object sender, EventArgs e) |
40 |
|
{ |
41 |
|
// octal input |
42 |
|
txtInput.InputType = MultiNumericBox_InputType.Octal; |
43 |
|
} |
44 |
|
|
45 |
|
private void chkieee754float_CheckedChanged(object sender, EventArgs e) |
46 |
|
{ |
47 |
|
// IEEE754 Hex Float (hex) |
48 |
|
txtInput.InputType = MultiNumericBox_InputType.IEEE754HexFloat; |
49 |
} |
} |
50 |
} |
} |
51 |
} |
} |