forked from cyq1162/cyqdata
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMDataRow.cs
98 lines (83 loc) · 2.44 KB
/
MDataRow.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
using System;
using System.Collections.Generic;
using System.Text;
using System.Data;
using System.Collections;
using System.ComponentModel;
using CYQ.Data.SQL;
using CYQ.Data.Tool;
using CYQ.Data.Extension;
using System.Reflection;
using System.Collections.Specialized;
using CYQ.Data.UI;
namespace CYQ.Data.Table
{
public partial class MDataRow : System.ComponentModel.ICustomTypeDescriptor
{
#region ICustomTypeDescriptor ³ÉÔ±
System.ComponentModel.AttributeCollection ICustomTypeDescriptor.GetAttributes()
{
return null;
}
string ICustomTypeDescriptor.GetClassName()
{
return "MDataRow";
}
string ICustomTypeDescriptor.GetComponentName()
{
return string.Empty;
}
TypeConverter ICustomTypeDescriptor.GetConverter()
{
return null;
}
EventDescriptor ICustomTypeDescriptor.GetDefaultEvent()
{
return null;
}
PropertyDescriptor ICustomTypeDescriptor.GetDefaultProperty()
{
return null;
}
object ICustomTypeDescriptor.GetEditor(Type editorBaseType)
{
return null;
}
EventDescriptorCollection ICustomTypeDescriptor.GetEvents(Attribute[] attributes)
{
return null;
}
EventDescriptorCollection ICustomTypeDescriptor.GetEvents()
{
return null;
}
PropertyDescriptorCollection ICustomTypeDescriptor.GetProperties(Attribute[] attributes)
{
return Create();
}
PropertyDescriptorCollection ICustomTypeDescriptor.GetProperties()
{
return Create();
}
object ICustomTypeDescriptor.GetPropertyOwner(System.ComponentModel.PropertyDescriptor pd)
{
return this;
}
[NonSerialized]
PropertyDescriptorCollection properties;
PropertyDescriptorCollection Create()
{
if (properties != null)
{
return properties;
}
properties = new PropertyDescriptorCollection(null);
foreach (MDataCell mdc in this)
{
properties.Add(new MDataProperty(mdc, null));
}
return properties;
}
#endregion
}
}