Author: mhutch
Date: 2008-02-01 19:31:47 -0500 (Fri, 01 Feb 2008)
New Revision: 94601

Modified:
   
branches/monodevelop/main/1.0/src/addins/MonoDevelop.DesignerSupport/ChangeLog
   
branches/monodevelop/main/1.0/src/addins/MonoDevelop.DesignerSupport/MonoDevelop.DesignerSupport/BindingService.cs
Log:
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).



Modified: 
branches/monodevelop/main/1.0/src/addins/MonoDevelop.DesignerSupport/ChangeLog
===================================================================
--- 
branches/monodevelop/main/1.0/src/addins/MonoDevelop.DesignerSupport/ChangeLog  
    2008-02-02 00:29:22 UTC (rev 94600)
+++ 
branches/monodevelop/main/1.0/src/addins/MonoDevelop.DesignerSupport/ChangeLog  
    2008-02-02 00:31:47 UTC (rev 94601)
@@ -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: 
branches/monodevelop/main/1.0/src/addins/MonoDevelop.DesignerSupport/MonoDevelop.DesignerSupport/BindingService.cs
===================================================================
--- 
branches/monodevelop/main/1.0/src/addins/MonoDevelop.DesignerSupport/MonoDevelop.DesignerSupport/BindingService.cs
  2008-02-02 00:29:22 UTC (rev 94600)
+++ 
branches/monodevelop/main/1.0/src/addins/MonoDevelop.DesignerSupport/MonoDevelop.DesignerSupport/BindingService.cs
  2008-02-02 00:31:47 UTC (rev 94601)
@@ -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