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

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

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

--- trunk/RomCheater/Docking/FloatingDataTypeConverter.cs	2012/06/02 14:54:17	226
+++ trunk/RomCheater/Docking/FloatingDataTypeConverter.cs	2012/06/10 04:03:24	368
@@ -67,10 +67,14 @@
                     case NumericInputTypes.Decimal:
                         txtDecimal.Value = txtInput.Value;
                         ConvertData(txtDecimal.Value, 10);
+                         FloatConverter.SetFloatValue(Convert.ToSingle(txtDecimal.Value));
+                            FloatConverter.CalculateHexFloat();
                         break;
                     case NumericInputTypes.Hex:
                         txtHex.Value = txtInput.Value;
                         ConvertData(txtHex.Value, 16);
+                        FloatConverter.SetFloatHexValue(Convert.ToUInt32(txtHex.Value,16));
+                        FloatConverter.CalculateFloat();
                         break;
                     //case NumericInputTypes.IEEE754HexFloat:
                     //    txtFloat.Value = txtInput.Value;
@@ -81,6 +85,7 @@
                         ConvertData(txtOctal.Value, 8);
                         break;
                 }
+               
             }
             catch (FormatException ex)
             {

 

  ViewVC Help
Powered by ViewVC 1.1.22