* Application.cs: fix compilation errors when debug is enabled.
[mono.git] / mcs / class / Managed.Windows.Forms / System.Windows.Forms / KeyboardLayouts.cs
index 8a6d0098947f124c1826ef26a1aee78b84c21aab..4acff57a0a38a78891bc8798115f2892e7bd4273 100644 (file)
@@ -29,33 +29,11 @@ using System.Resources;
 
 namespace System.Windows.Forms {
 
-       internal class _KeyboardLayout {
-               public string Comment;
-               public int CodePage;
-               public uint [][] Key;
-               public short [] Scan;
-               public VirtualKeys [] VKey;
-
-               public _KeyboardLayout (string comment, int code_page, uint [][] key, short [] scan, VirtualKeys [] vkey)
-               {
-                       Comment = comment;
-                       CodePage = code_page;
-                       Key = key;
-                       Scan = scan;
-                       VKey = vkey;
-               }
-       }
-
        internal class KeyboardLayouts {
 
                private KeyboardLayout [] keyboard_layouts;
                public int [][] vkey_table;
                public short [][] scan_table;
-               
-               public KeyboardLayouts ()
-               {
-                       LoadLayouts ();
-               }
 
                public void LoadLayouts ()
                {
@@ -68,15 +46,19 @@ namespace System.Windows.Forms {
                }
 
                public KeyboardLayout [] Layouts {
-                       get { return keyboard_layouts; }
+                       get {
+                               if (keyboard_layouts == null)
+                                       LoadLayouts ();
+                               return keyboard_layouts;
+                       }
                }
        }
 
 
 
        [Serializable]
-       [CLSCompliant(false)]
 #if GENERATING_RESOURCES
+       [CLSCompliant(false)]
        public
 #else 
        internal