瀏覽代碼

2004-03-09 Umadevi S ([email protected])
* DataTableMappingCollection.cs - Implemented EditorAttribute and BrowsableAttribute

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

Umadevi S 22 年之前
父節點
當前提交
e67b701eae
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      mcs/class/System.Data/System.Data.Common/DataTableMappingCollection.cs

+ 3 - 1
mcs/class/System.Data/System.Data.Common/DataTableMappingCollection.cs

@@ -15,6 +15,7 @@ using System.ComponentModel;
 
 namespace System.Data.Common {
 	[ListBindable (false)]
+	[EditorAttribute ("Microsoft.VSDesigner.Data.Design.DataTableMappingCollectionEditor, "+ Consts.AssemblyMicrosoft_VSDesigner, "System.Drawing.Design.UITypeEditor, "+ Consts.AssemblySystem_Drawing )]
 	public sealed class DataTableMappingCollection : MarshalByRefObject, ITableMappingCollection, IList, ICollection, IEnumerable
 	{
 		#region Fields
@@ -38,6 +39,7 @@ namespace System.Data.Common {
 
 		#region Properties
 
+		[Browsable (false)]
 		[DataSysDescription ("The number of items in the collection")]
 		[DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]
 		public int Count {
@@ -64,7 +66,7 @@ namespace System.Data.Common {
 			get { return (DataTableMapping) sourceTables[sourceTable]; }
 			set { this [mappings.IndexOf (sourceTables[sourceTable])] = value; }
 		}
-	
+			
 		object IList.this [int index] {
 			get { return (object)(this[index]); }
 			set {