forked from ahyahy/OneScriptForms
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGridItem.cs
More file actions
71 lines (59 loc) · 1.8 KB
/
GridItem.cs
File metadata and controls
71 lines (59 loc) · 1.8 KB
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
using ScriptEngine.Machine.Contexts;
using ScriptEngine.Machine;
namespace osf
{
public class GridItem
{
public ClGridItem dll_obj;
public System.Windows.Forms.GridItem M_GridItem;
public GridItem(osf.GridItem p1)
{
M_GridItem = p1.M_GridItem;
OneScriptForms.AddToHashtable(M_GridItem, this);
}
public GridItem(System.Windows.Forms.GridItem p1)
{
M_GridItem = p1;
OneScriptForms.AddToHashtable(M_GridItem, this);
}
public string Label
{
get { return M_GridItem.Label; }
}
public object Value
{
get { return M_GridItem.Value; }
}
}
[ContextClass ("КлЭлементСетки", "ClGridItem")]
public class ClGridItem : AutoContext<ClGridItem>
{
public ClGridItem(GridItem p1)
{
GridItem GridItem1 = p1;
GridItem1.dll_obj = this;
Base_obj = GridItem1;
}
public GridItem Base_obj;
[ContextProperty("Значение", "Value")]
public IValue Value
{
get { return OneScriptForms.RevertObj(Base_obj.Value); }
}
[ContextProperty("Надпись", "Label")]
public string Label
{
get { return Base_obj.Label; }
}
[ContextProperty("ТипЭлементаСетки", "GridItemType")]
public int GridItemType
{
get { return (int)Base_obj.M_GridItem.GridItemType; }
}
[ContextProperty("ЭлементыСетки", "GridItems")]
public ClGridItemCollection GridItems
{
get { return new ClGridItemCollection(Base_obj.M_GridItem.GridItems); }
}
}
}