2005-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
authorGonzalo Paniagua Javier <gonzalo.mono@gmail.com>
Wed, 8 Jun 2005 08:50:55 +0000 (08:50 -0000)
committerGonzalo Paniagua Javier <gonzalo.mono@gmail.com>
Wed, 8 Jun 2005 08:50:55 +0000 (08:50 -0000)
* ToolboxItemAttribute.cs: fix the fix that was fixed before.

svn path=/trunk/mcs/; revision=45625

mcs/class/System/System.ComponentModel/ChangeLog
mcs/class/System/System.ComponentModel/ToolboxItemAttribute.cs

index 69c4624f4379f821f6a18f4b574e99f314585b41..5e0ebefa747d2cf3f6da069492007b27aefb0f74 100644 (file)
@@ -1,3 +1,7 @@
+2005-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * ToolboxItemAttribute.cs: fix the fix that was fixed before.
+
 2005-06-08  Zoltan Varga  <vargaz@freemail.hu>
 
        * ToolboxItemAttribute.cs: Revert last change as it breaks the build.
index 698465cb21680a0703cfd12a4aa161c4906508a1..0251012749c66cda3c42c01f68da11c91f14b00d 100644 (file)
@@ -35,7 +35,7 @@ namespace System.ComponentModel
        [AttributeUsage(AttributeTargets.All)]
        public class ToolboxItemAttribute : Attribute
        {
-               private static string defaultItemType = "System.Drawing.Design.ToolboxItem,System.Drawing";
+               static string defaultItemType;
 
                public static readonly ToolboxItemAttribute Default = new ToolboxItemAttribute (defaultItemType);
                public static readonly ToolboxItemAttribute None = new ToolboxItemAttribute (false);
@@ -43,6 +43,11 @@ namespace System.ComponentModel
                private Type itemType;
                private string itemTypeName;
 
+               static ToolboxItemAttribute ()
+               {
+                       defaultItemType = "System.Drawing.Desing.ToolboxItem" + Consts.AssemblySystem_Drawing;
+               }
+
                public ToolboxItemAttribute (bool defaultType)
                {
                        if (defaultType)