forked from ahyahy/OneScriptForms
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDataType.cs
More file actions
44 lines (38 loc) · 1.21 KB
/
DataType.cs
File metadata and controls
44 lines (38 loc) · 1.21 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
using ScriptEngine.Machine.Contexts;
namespace osf
{
[ContextClass ("КлТипДанных", "ClDataType")]
public class ClDataType : AutoContext<ClDataType>
{
private int m_string = 0; // 0 Тип данных <B>Строка</B>.
private int m_number = 1; // 1 Тип данных <B>Число</B>.
private int m_boolean = 2; // 2 Тип данных <B>Булево</B>.
private int m_date = 3; // 3 Тип данных <B>Дата</B>.
private int m_object = 4; // 4 Тип данных <B>Объект</B>.
[ContextProperty("Булево", "Boolean")]
public int Boolean
{
get { return m_boolean; }
}
[ContextProperty("Дата", "Date")]
public int Date
{
get { return m_date; }
}
[ContextProperty("Объект", "Object")]
public int Object
{
get { return m_object; }
}
[ContextProperty("Строка", "String")]
public int String
{
get { return m_string; }
}
[ContextProperty("Число", "Number")]
public int Number
{
get { return m_number; }
}
}
}