2 // System.Data.DataViewManagerListItemTypeDscriptor
5 // Gonzalo Paniagua Javier (gonzalo@ximian.com)
7 // (C) 2002 Ximian, Inc (http://www.ximian.com)
11 using System.ComponentModel;
15 class DataViewManagerListItemTypeDescriptor : ICustomTypeDescriptor
18 PropertyDescriptorCollection propsCollection;
20 internal DataViewManagerListItemTypeDescriptor (DataViewManager dvm)
25 internal DataViewManager DataViewManager {
29 AttributeCollection ICustomTypeDescriptor.GetAttributes ()
31 return new AttributeCollection (null);
35 string ICustomTypeDescriptor.GetClassName ()
37 throw new NotImplementedException ();
41 string ICustomTypeDescriptor.GetComponentName ()
43 throw new NotImplementedException ();
47 TypeConverter ICustomTypeDescriptor.GetConverter ()
49 throw new NotImplementedException ();
53 EventDescriptor ICustomTypeDescriptor.GetDefaultEvent ()
55 throw new NotImplementedException ();
59 PropertyDescriptor ICustomTypeDescriptor.GetDefaultProperty ()
61 throw new NotImplementedException ();
65 object ICustomTypeDescriptor.GetEditor (Type editorBaseType)
67 throw new NotImplementedException ();
71 EventDescriptorCollection ICustomTypeDescriptor.GetEvents ()
73 throw new NotImplementedException ();
77 EventDescriptorCollection ICustomTypeDescriptor.GetEvents (System.Attribute[] attributes)
79 throw new NotImplementedException ();
82 PropertyDescriptorCollection ICustomTypeDescriptor.GetProperties ()
84 DataSet ds = dvm.DataSet;
88 DataTableCollection tables = ds.Tables;
90 PropertyDescriptor [] descriptors = new PropertyDescriptor [tables.Count];
91 foreach (DataTable table in tables)
92 descriptors [index++] = new DataTablePropertyDescriptor (table);
94 return new PropertyDescriptorCollection (descriptors);
98 PropertyDescriptorCollection ICustomTypeDescriptor.GetProperties (System.Attribute[] attributes)
100 throw new NotImplementedException ();
104 object ICustomTypeDescriptor.GetPropertyOwner (PropertyDescriptor pd)
106 throw new NotImplementedException ();