1 |
william |
218 |
using System; |
2 |
|
|
using System.Collections.Generic; |
3 |
|
|
using System.ComponentModel; |
4 |
|
|
using System.Data; |
5 |
|
|
using System.Drawing; |
6 |
|
|
using System.Linq; |
7 |
|
|
using System.Text; |
8 |
|
|
using System.Windows.Forms; |
9 |
|
|
using WeifenLuo.WinFormsUI.Docking; |
10 |
|
|
|
11 |
|
|
namespace RomCheater.Docking |
12 |
|
|
{ |
13 |
|
|
public partial class FloatingDataTypeConverter : DockContent |
14 |
|
|
{ |
15 |
|
|
public FloatingDataTypeConverter() |
16 |
|
|
{ |
17 |
|
|
InitializeComponent(); |
18 |
william |
223 |
chkhexadecimal.Checked = true; |
19 |
william |
218 |
} |
20 |
william |
222 |
|
21 |
|
|
private void chkBinary_CheckedChanged(object sender, EventArgs e) |
22 |
|
|
{ |
23 |
william |
223 |
// binary input |
24 |
|
|
txtInput.InputType = MultiNumericBox_InputType.Binary; |
25 |
|
|
} |
26 |
william |
222 |
|
27 |
william |
223 |
private void chkdecimal_CheckedChanged(object sender, EventArgs e) |
28 |
|
|
{ |
29 |
|
|
// decimal input |
30 |
|
|
txtInput.InputType = MultiNumericBox_InputType.Decimal; |
31 |
william |
222 |
} |
32 |
william |
223 |
|
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 |
william |
218 |
} |
51 |
|
|
} |