Author: mhutch
Date: 2008-02-01 19:29:22 -0500 (Fri, 01 Feb 2008)
New Revision: 94600

Modified:
   trunk/monodevelop/main/src/addins/MonoDevelop.DesignerSupport/ChangeLog
   
trunk/monodevelop/main/src/addins/MonoDevelop.DesignerSupport/MonoDevelop.DesignerSupport/BindingService.cs
Log:
* MonoDevelop.DesignerSupport/BindingService.cs: If no specific part is
  specified when adding a member to a class, add it to the first
  part. Fixes an error in the ASP.NET designer (and anything else
  using the binding service without explicitly specifying class
  parts).

Modified: 
trunk/monodevelop/main/src/addins/MonoDevelop.DesignerSupport/ChangeLog
===================================================================
--- trunk/monodevelop/main/src/addins/MonoDevelop.DesignerSupport/ChangeLog     
2008-02-02 00:27:04 UTC (rev 94599)
+++ trunk/monodevelop/main/src/addins/MonoDevelop.DesignerSupport/ChangeLog     
2008-02-02 00:29:22 UTC (rev 94600)
@@ -1,3 +1,10 @@
+2008-02-01  Michael Hutchinson <[EMAIL PROTECTED]> 
+
+       * MonoDevelop.DesignerSupport/BindingService.cs: If no specific part is
+         specified when adding a member to a class, add it to the first part.
+         Fixes an error in the ASP.NET designer (and anything else using the
+         binding service without explicitly specifying class parts).
+
 2008-01-29  Lluis Sanchez Gual <[EMAIL PROTECTED]> 
 
        * MonoDevelop.DesignerSupport.addin.xml, 
MonoDevelop.DesignerSupport.mdp,

Modified: 
trunk/monodevelop/main/src/addins/MonoDevelop.DesignerSupport/MonoDevelop.DesignerSupport/BindingService.cs
===================================================================
--- 
trunk/monodevelop/main/src/addins/MonoDevelop.DesignerSupport/MonoDevelop.DesignerSupport/BindingService.cs
 2008-02-02 00:27:04 UTC (rev 94599)
+++ 
trunk/monodevelop/main/src/addins/MonoDevelop.DesignerSupport/MonoDevelop.DesignerSupport/BindingService.cs
 2008-02-02 00:29:22 UTC (rev 94600)
@@ -148,7 +148,7 @@
                
                public static IMember AddMemberToClass (CombineEntry entry, 
IClass cls, CodeTypeMember member, bool throwIfExists)
                {
-                       return AddMemberToClass (entry, cls, null, member, 
throwIfExists);
+                       return AddMemberToClass (entry, cls, cls.Parts[0], 
member, throwIfExists);
                }
                
                public static IMember AddMemberToClass (CombineEntry entry, 
IClass cls, IClass specificPartToAffect, CodeTypeMember member, bool 
throwIfExists)

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

Reply via email to