/[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	2013/06/06 07:46:38	575
+++ trunk/Win32/libWin32/Win32/UI/MaskedHexBox.cs	2013/06/06 08:44:41	582
@@ -145,15 +145,10 @@
 
                     switch (value)
                     {
-                        case 0:
-                        case 1:
                         case 2: _TextLength = 2; mask.Append(this.CreateMask(_TextLength)); break;
-                        case 3:
                         case 4: _TextLength = 4; mask.Append(this.CreateMask(_TextLength)); break;
-                        case 5:
-                        case 6:
-                        case 7:
-                        case 8:
+                        case 8: goto default;
+                        case 16: _TextLength = 16; mask.Append(this.CreateMask(_TextLength)); break;
                         default: _TextLength = 8; mask.Append(this.CreateMask(_TextLength)); break;
                     }
                 }
@@ -161,15 +156,10 @@
                 {
                     switch (value)
                     {
-                        case 0:
-                        case 1:
                         case 2: _TextLength = 2; mask.Append(this.CreateMask(_TextLength)); break;
-                        case 3:
                         case 4: _TextLength = 4; mask.Append(this.CreateMask(_TextLength)); break;
-                        case 5:
-                        case 6:
-                        case 7:
                         case 8: _TextLength = 8; mask.Append(this.CreateMask(_TextLength)); break;
+                        case 16: _TextLength = 16; mask.Append(this.CreateMask(_TextLength)); break;
                         default: _TextLength = value; mask.Append(this.CreateMask(_TextLength)); break;
                     }
                 }

 

  ViewVC Help
Powered by ViewVC 1.1.22