Author: pbartok
Date: 2005-03-30 02:44:12 -0500 (Wed, 30 Mar 2005)
New Revision: 42363

Modified:
   trunk/mcs/class/System.Drawing/System.Drawing/ChangeLog
   trunk/mcs/class/System.Drawing/System.Drawing/Icon.cs
Log:
2005-03-30  Rog?\195?\169rio Pereira Ara?\195?\186jo <[EMAIL PROTECTED]>

        * Icon.cs: Finished Icon(Type, String) ctor



Modified: trunk/mcs/class/System.Drawing/System.Drawing/ChangeLog
===================================================================
--- trunk/mcs/class/System.Drawing/System.Drawing/ChangeLog     2005-03-30 
02:08:07 UTC (rev 42362)
+++ trunk/mcs/class/System.Drawing/System.Drawing/ChangeLog     2005-03-30 
07:44:12 UTC (rev 42363)
@@ -1,3 +1,7 @@
+2005-03-30  RogÃrio Pereira AraÃjo <[EMAIL PROTECTED]>
+
+       * Icon.cs: Finished Icon(Type, String) ctor
+
 2005-03-23 Jordi Mas i Hernandez <[EMAIL PROTECTED]>
 
        * gdipFunctions.cs: fixes GdipGetImagePalette signature

Modified: trunk/mcs/class/System.Drawing/System.Drawing/Icon.cs
===================================================================
--- trunk/mcs/class/System.Drawing/System.Drawing/Icon.cs       2005-03-30 
02:08:07 UTC (rev 42362)
+++ trunk/mcs/class/System.Drawing/System.Drawing/Icon.cs       2005-03-30 
07:44:12 UTC (rev 42363)
@@ -151,14 +151,14 @@
                {                       
                }
 
-               [MonoTODO ("Implement")]
                public Icon (Type type, string resource)
                {
                        using (Stream s = 
type.Assembly.GetManifestResourceStream (resource)) {
-                               if (s == null)
-                                       throw new FileNotFoundException 
("Resource name was not found: `" + resource + "'");                            
+                               if (s == null) {
+                                       throw new FileNotFoundException 
("Resource name was not found: `" + resource + "'");
+                               }
+                               InitFromStreamWithSize (s, 32, 32);             
// 32x32 is default
                        }
-                       throw new NotImplementedException ();
                }
 
                        private Icon (SerializationInfo info, StreamingContext 
context)

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to