Author: ivanz
Date: 2007-12-24 09:31:58 -0500 (Mon, 24 Dec 2007)
New Revision: 91860

Modified:
   trunk/mcs/class/System.Design/System.ComponentModel.Design/ChangeLog
   trunk/mcs/class/System.Design/System.ComponentModel.Design/DesignerHost.cs
Log:
2007-12-24  Ivan N. Zlatev  <[EMAIL PROTECTED]>

        * DesignerHost.cs: Report Errors.



Modified: trunk/mcs/class/System.Design/System.ComponentModel.Design/ChangeLog
===================================================================
--- trunk/mcs/class/System.Design/System.ComponentModel.Design/ChangeLog        
2007-12-24 14:31:14 UTC (rev 91859)
+++ trunk/mcs/class/System.Design/System.ComponentModel.Design/ChangeLog        
2007-12-24 14:31:58 UTC (rev 91860)
@@ -1,3 +1,7 @@
+2007-12-24  Ivan N. Zlatev  <[EMAIL PROTECTED]>
+
+       * DesignerHost.cs: Report Errors.
+
 2007-10-24  Ivan N. Zlatev  <[EMAIL PROTECTED]>
 
        * DesignSurface.cs: 

Modified: 
trunk/mcs/class/System.Design/System.ComponentModel.Design/DesignerHost.cs
===================================================================
--- trunk/mcs/class/System.Design/System.ComponentModel.Design/DesignerHost.cs  
2007-12-24 14:31:14 UTC (rev 91859)
+++ trunk/mcs/class/System.Design/System.ComponentModel.Design/DesignerHost.cs  
2007-12-24 14:31:58 UTC (rev 91860)
@@ -33,6 +33,7 @@
 using System.Collections;
 using System.ComponentModel;
 using System.ComponentModel.Design.Serialization;
+using System.Windows.Forms.Design;
 using System.Reflection;
 
 namespace System.ComponentModel.Design
@@ -126,7 +127,11 @@
                                _designers[component] = designer;
                                designer.Initialize (component);
                        } else {
-                               Console.WriteLine ("Unable to load a designer 
for " + component.GetType ().FullName);
+                               IUIService uiService = GetService (typeof 
(IUIService)) as IUIService;
+                               if (uiService != null) {
+                                       uiService.ShowError ("Unable to load a 
designer for component type '" +
+                                                            component.GetType 
().Name + "'");
+                               }
                        }
 
                        // Activate the host and design surface once the root 
component is added to

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

Reply via email to