/[RomCheater]/trunk/Win32/libWin32/Win32/UI/MultiNumericBox.cs
ViewVC logotype

Diff of /trunk/Win32/libWin32/Win32/UI/MultiNumericBox.cs

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

--- trunk/Win32/libWin32/Win32/UI/MultiNumericBox.cs	2012/06/02 13:27:18	224
+++ trunk/Win32/libWin32/Win32/UI/MultiNumericBox.cs	2012/06/02 14:29:00	225
@@ -15,24 +15,18 @@
             : base()
         {
             InitializeComponent();
-            this.Value = 0;
+            this.Value = (0).ToString();
             this.ReadOnly = false;
-            InputType = MultiNumericBox_InputType.Default;
+            InputType = NumericInputTypes.Default;
         }
+        //public override string Text
+        //{
+        //    get { return base.Text; }
+        //    set { base.Text = value; }
+        //}
 
-        new public ValueType Value
-        {
-            get { return this.ToSingle(); }
-            set { base.Value = value; }
-        }
-        public override string Text
-        {
-            get { return base.Text; }
-            set { base.Text = value; }
-        }
-
-        private MultiNumericBox_InputType _InputType;
-        public MultiNumericBox_InputType InputType
+        private NumericInputTypes _InputType;
+        public NumericInputTypes InputType
         {
             get { return _InputType; }
             set
@@ -46,18 +40,18 @@
             base.CreateStandardKeys(ValidKeys);
             switch (InputType)
             {
-                case MultiNumericBox_InputType.Binary:
+                case NumericInputTypes.Binary:
                     ValidKeys.Add(Keys.D0);
                     ValidKeys.Add(Keys.NumPad0);
                     ValidKeys.Add(Keys.D1);
                     ValidKeys.Add(Keys.NumPad1);
                     break;
-                case MultiNumericBox_InputType.Octal:
+                case NumericInputTypes.Octal:
                     ValidKeys.AddRange(Enum.GetValues(typeof(Keys)).Cast<Keys>().Where(x => x >= Keys.D0 && x <= Keys.D7));
                     ValidKeys.AddRange(Enum.GetValues(typeof(Keys)).Cast<Keys>().Where(x => x >= Keys.NumPad0 && x <= Keys.NumPad7));
                     break;
-                case MultiNumericBox_InputType.Hex:
-                case MultiNumericBox_InputType.IEEE754HexFloat:
+                case NumericInputTypes.Hex:
+                case NumericInputTypes.IEEE754HexFloat:
                     ValidKeys.AddRange(Enum.GetValues(typeof(Keys)).Cast<Keys>().Where(x => x >= Keys.D0 && x <= Keys.D9));
                     ValidKeys.AddRange(Enum.GetValues(typeof(Keys)).Cast<Keys>().Where(x => x >= Keys.NumPad0 && x <= Keys.NumPad9));
                     ValidKeys.Add(Keys.A);
@@ -67,7 +61,7 @@
                     ValidKeys.Add(Keys.E);
                     ValidKeys.Add(Keys.F);
                     break;
-                case MultiNumericBox_InputType.Decimal:
+                case NumericInputTypes.Decimal:
                     ValidKeys.Add(Keys.Decimal);
                     ValidKeys.Add(Keys.OemPeriod);
                     ValidKeys.AddRange(Enum.GetValues(typeof(Keys)).Cast<Keys>().Where(x => x >= Keys.D0 && x <= Keys.D9));
@@ -77,7 +71,7 @@
         }
     }
 
-    public enum MultiNumericBox_InputType
+    public enum NumericInputTypes
     {       
         Decimal,
         Binary,

 

  ViewVC Help
Powered by ViewVC 1.1.22