-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathDataGridCell.cs
More file actions
93 lines (80 loc) · 2.58 KB
/
DataGridCell.cs
File metadata and controls
93 lines (80 loc) · 2.58 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
using ScriptEngine.Machine.Contexts;
namespace osf
{
public class DataGridCell
{
public ClDataGridCell dll_obj;
public System.Windows.Forms.DataGridCell M_DataGridCell;
public DataGridCell(int p1, int p2)
{
M_DataGridCell = new System.Windows.Forms.DataGridCell(p1, p2);
M_DataGridCell.RowNumber = p1;
M_DataGridCell.ColumnNumber = p2;
OneScriptForms.AddToHashtable(M_DataGridCell, this);
}
public DataGridCell(osf.DataGridCell p1)
{
M_DataGridCell = p1.M_DataGridCell;
OneScriptForms.AddToHashtable(M_DataGridCell, this);
}
public DataGridCell(System.Windows.Forms.DataGridCell p1)
{
M_DataGridCell = p1;
OneScriptForms.AddToHashtable(M_DataGridCell, this);
}
public int ColumnNumber
{
get { return M_DataGridCell.ColumnNumber; }
set
{
M_DataGridCell.ColumnNumber = value;
//System.Windows.Forms.Application.DoEvents();
}
}
public int RowNumber
{
get { return M_DataGridCell.RowNumber; }
set
{
M_DataGridCell.RowNumber = value;
//System.Windows.Forms.Application.DoEvents();
}
}
}
[ContextClass("КлЯчейкаСеткиДанных", "ClDataGridCell")]
public class ClDataGridCell : AutoContext<ClDataGridCell>
{
public ClDataGridCell(int p1, int p2)
{
DataGridCell DataGridCell1 = new DataGridCell(p1, p2);
DataGridCell1.dll_obj = this;
Base_obj = DataGridCell1;
}
public ClDataGridCell(DataGridCell p1)
{
DataGridCell DataGridCell1 = p1;
DataGridCell1.dll_obj = this;
Base_obj = DataGridCell1;
}
public DataGridCell Base_obj;
private string name;
[ContextProperty("Имя", "Name")]
public string Name
{
get { return name; }
set { name = value; }
}
[ContextProperty("НомерКолонки", "ColumnNumber")]
public int ColumnNumber
{
get { return Base_obj.ColumnNumber; }
set { Base_obj.ColumnNumber = value; }
}
[ContextProperty("НомерСтроки", "RowNumber")]
public int RowNumber
{
get { return Base_obj.RowNumber; }
set { Base_obj.RowNumber = value; }
}
}
}