/[RomCheater]/trunk/RomCheater/Docking/FloatingDataTypeConverter.cs
ViewVC logotype

Contents of /trunk/RomCheater/Docking/FloatingDataTypeConverter.cs

Parent Directory Parent Directory | Revision Log Revision Log


Revision 223 - (show annotations) (download)
Sat Jun 2 13:20:13 2012 UTC (8 years, 5 months ago) by william
File size: 1501 byte(s)
+ add support for multi input box : octal is not setup

1 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 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 }

  ViewVC Help
Powered by ViewVC 1.1.22