Browse Source

* IComponent.cs: Fixed Designer attribute to match MS.NET.
* DesignerAttribute.cs: DesignerBaseTypeName defaults to fullname of
IDesigner to match MS.NET.

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

Gert Driesen 20 năm trước cách đây
mục cha
commit
edd7db4891

+ 6 - 0
mcs/class/System/System.ComponentModel/ChangeLog

@@ -1,3 +1,9 @@
+2005-08-09  Gert Driesen <[email protected]>
+
+	* IComponent.cs: Fixed Designer attribute to match MS.NET.
+	* DesignerAttribute.cs: DesignerBaseTypeName defaults to fullname of
+	IDesigner to match MS.NET.
+
 2005-08-07  Michael Hutchinson <[email protected]>
 
 	Patch from Michael Hutchinson to make the aspnet editor work. 

+ 3 - 4
mcs/class/System/System.ComponentModel/DesignerAttribute.cs

@@ -30,16 +30,14 @@
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
 
+using System.ComponentModel.Design;
+
 namespace System.ComponentModel 
 {
 
 	/// <summary>
 	///   Designer Attribute for classes. 
 	/// </summary>
-	
-	/// <remarks>
-	/// </remarks>
-	
 	[AttributeUsage(AttributeTargets.Class | AttributeTargets.Interface, AllowMultiple = true, Inherited = true)]
 	public sealed class DesignerAttribute : Attribute
 	{
@@ -49,6 +47,7 @@ namespace System.ComponentModel
 		public DesignerAttribute (string designerTypeName)
 		{
 			name = designerTypeName;
+			basetypename = typeof(IDesigner).FullName;
 		}
 
 		public DesignerAttribute (Type designerType)

+ 3 - 2
mcs/class/System/System.ComponentModel/IComponent.cs

@@ -37,8 +37,9 @@ using System.ComponentModel.Design.Serialization;
 
 namespace System.ComponentModel
 {
-	[ComVisible (true), TypeConverter (typeof (System.ComponentModel.ComponentConverter))]
-	[Designer ("System.Windows.Forms.Design.ComponentDesigner, " + Consts.AssemblySystem_Design, typeof (IDesigner))]
+	[ComVisible (true)]
+	[TypeConverter (typeof (ComponentConverter))]
+	[Designer ("System.ComponentModel.Design.ComponentDesigner, " + Consts.AssemblySystem_Design, typeof (IDesigner))]
 	[Designer ("System.Windows.Forms.Design.ComponentDocumentDesigner, " + Consts.AssemblySystem_Design, typeof (IRootDesigner))]
 	[RootDesignerSerializer ("System.ComponentModel.Design.Serialization.RootCodeDomSerializer, " + Consts.AssemblySystem_Design, "System.ComponentModel.Design.Serialization.CodeDomSerializer, " + Consts.AssemblySystem_Design, true)]
 	public interface IComponent : IDisposable