-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathDataGridTextBox.cs
More file actions
159 lines (138 loc) · 4.46 KB
/
DataGridTextBox.cs
File metadata and controls
159 lines (138 loc) · 4.46 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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
using System;
using ScriptEngine.Machine.Contexts;
namespace osf
{
public class DataGridTextBox : TextBox
{
public new ClDataGridTextBox dll_obj;
public System.Windows.Forms.DataGridTextBox M_DataGridTextBox;
public DataGridTextBox()
{
M_DataGridTextBox = new System.Windows.Forms.DataGridTextBox();
base.M_Control = M_DataGridTextBox;
}
public DataGridTextBox(osf.DataGridTextBox p1)
{
M_DataGridTextBox = p1.M_DataGridTextBox;
base.M_Control = M_DataGridTextBox;
}
public DataGridTextBox(System.Windows.Forms.DataGridTextBox p1)
{
M_DataGridTextBox = p1;
base.M_Control = M_DataGridTextBox;
}
public DataGridTextBox(System.Windows.Forms.TextBox p1)
{
M_DataGridTextBox = (System.Windows.Forms.DataGridTextBox)p1;
base.M_Control = M_DataGridTextBox;
}
}
[ContextClass("КлПолеВводаКолонки", "ClDataGridTextBox")]
public class ClDataGridTextBox : AutoContext<ClDataGridTextBox>
{
private ClColor backColor;
private ClFont font;
private ClColor foreColor;
private ClCollection tag = new ClCollection();
public ClDataGridTextBox()
{
DataGridTextBox DataGridTextBox1 = new DataGridTextBox();
DataGridTextBox1.dll_obj = this;
Base_obj = DataGridTextBox1;
foreColor = new ClColor(Base_obj.ForeColor);
backColor = new ClColor(Base_obj.BackColor);
}
public ClDataGridTextBox(DataGridTextBox p1)
{
DataGridTextBox DataGridTextBox1 = p1;
DataGridTextBox1.dll_obj = this;
Base_obj = DataGridTextBox1;
foreColor = new ClColor(Base_obj.ForeColor);
backColor = new ClColor(Base_obj.BackColor);
}
public DataGridTextBox Base_obj;
[ContextProperty("ВысотаШрифта", "FontHeight")]
public int FontHeight
{
get { return Convert.ToInt32(Base_obj.FontHeight); }
}
[ContextProperty("ЖирныйШрифт", "FontBold")]
public bool FontBold
{
get { return Base_obj.FontBold; }
set { Base_obj.FontBold = value; }
}
[ContextProperty("Имя", "Name")]
public string Name
{
get { return Base_obj.Name; }
set { Base_obj.Name = value; }
}
[ContextProperty("ИмяШрифта", "FontName")]
public string FontName
{
get { return Base_obj.FontName; }
set { Base_obj.FontName = value; }
}
[ContextProperty("Метка", "Tag")]
public ClCollection Tag
{
get { return tag; }
}
[ContextProperty("ОсновнойЦвет", "ForeColor")]
public ClColor ForeColor
{
get { return foreColor; }
set
{
foreColor = value;
Base_obj.ForeColor = value.Base_obj;
}
}
[ContextProperty("РазмерШрифта", "FontSize")]
public int FontSize
{
get { return Convert.ToInt32(Base_obj.FontSize); }
set { Base_obj.FontSize = value; }
}
[ContextProperty("Текст", "Text")]
public string Text
{
get { return Base_obj.Text; }
set { Base_obj.Text = value; }
}
[ContextProperty("ФоновоеИзображение", "BackgroundImage")]
public ClBitmap BackgroundImage
{
get { return new ClBitmap(Base_obj.BackgroundImage); }
set { Base_obj.BackgroundImage = value.Base_obj; }
}
[ContextProperty("ЦветФона", "BackColor")]
public ClColor BackColor
{
get { return backColor; }
set
{
backColor = value;
Base_obj.BackColor = value.Base_obj;
}
}
[ContextProperty("Шрифт", "Font")]
public ClFont Font
{
get
{
if (font != null)
{
return font;
}
return new ClFont(Base_obj.Font);
}
set
{
font = value;
Base_obj.Font = value.Base_obj;
}
}
}
}