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

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

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

--- trunk/Win32/libWin32/Win32/UI/MaskedHexBox.cs	2012/06/05 08:52:07	287
+++ trunk/Win32/libWin32/Win32/UI/MaskedHexBox.cs	2013/06/06 07:46:38	575
@@ -78,12 +78,12 @@
             get { return txtMaskedHexBox.Text.PadRight(this.TextLength + 2, '0'); }
             set { txtMaskedHexBox.Text = value; }
         }
-        public long Value
+        public ulong Value
         {
-            get { return this.ToInt64(); }
+            get { return this.ToUInt64(); }
             set
             {
-                long old_value = this.Value;
+                ulong old_value = this.Value;
                 switch (this.TextLength)
                 {
                     case 0:
@@ -97,7 +97,7 @@
                     case 8: this.Text = string.Format("0x{0:x8}", value); break;
                     default: this.Text = string.Format("0x{0:x" + this.TextLength + "}", value); break;
                 }
-                long new_value = this.Value;
+                ulong new_value = this.Value;
                 if ((new_value!= old_value) && ValueChanged != null)
                     ValueChanged(this, new ValueChangedEventArgs(old_value, new_value));
             }

 

  ViewVC Help
Powered by ViewVC 1.1.22