ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/RomCheater/trunk/RomCheater/Docking/FloatingDataTypeConverter.cs
(Generate patch)

Comparing trunk/RomCheater/Docking/FloatingDataTypeConverter.cs (file contents):
Revision 367 by william, Sat Jun 2 14:54:17 2012 UTC vs.
Revision 368 by william, Sun Jun 10 04:03:24 2012 UTC

# Line 67 | Line 67 | namespace RomCheater.Docking
67                      case NumericInputTypes.Decimal:
68                          txtDecimal.Value = txtInput.Value;
69                          ConvertData(txtDecimal.Value, 10);
70 +                         FloatConverter.SetFloatValue(Convert.ToSingle(txtDecimal.Value));
71 +                            FloatConverter.CalculateHexFloat();
72                          break;
73                      case NumericInputTypes.Hex:
74                          txtHex.Value = txtInput.Value;
75                          ConvertData(txtHex.Value, 16);
76 +                        FloatConverter.SetFloatHexValue(Convert.ToUInt32(txtHex.Value,16));
77 +                        FloatConverter.CalculateFloat();
78                          break;
79                      //case NumericInputTypes.IEEE754HexFloat:
80                      //    txtFloat.Value = txtInput.Value;
# Line 81 | Line 85 | namespace RomCheater.Docking
85                          ConvertData(txtOctal.Value, 8);
86                          break;
87                  }
88 +              
89              }
90              catch (FormatException ex)
91              {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines