forked from ahyahy/OneScriptForms
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDay.cs
More file actions
66 lines (56 loc) · 2.16 KB
/
Day.cs
File metadata and controls
66 lines (56 loc) · 2.16 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
using ScriptEngine.Machine.Contexts;
namespace osf
{
[ContextClass ("КлДень", "ClDay")]
public class ClDay : AutoContext<ClDay>
{
private int m_monday = (int)System.Windows.Forms.Day.Monday; // 0 День: понедельник.
private int m_tuesday = (int)System.Windows.Forms.Day.Tuesday; // 1 День: вторник.
private int m_wednesday = (int)System.Windows.Forms.Day.Wednesday; // 2 День: среда.
private int m_thursday = (int)System.Windows.Forms.Day.Thursday; // 3 День: четверг.
private int m_friday = (int)System.Windows.Forms.Day.Friday; // 4 День: пятница.
private int m_saturday = (int)System.Windows.Forms.Day.Saturday; // 5 День: суббота.
private int m_sunday = (int)System.Windows.Forms.Day.Sunday; // 6 День: воскресенье.
private int m_default = (int)System.Windows.Forms.Day.Default; // 7 День недели, используемый по умолчанию, определенный приложением.
[ContextProperty("Воскресенье", "Sunday")]
public int Sunday
{
get { return m_sunday; }
}
[ContextProperty("Вторник", "Tuesday")]
public int Tuesday
{
get { return m_tuesday; }
}
[ContextProperty("ПоУмолчанию", "Default")]
public int Default
{
get { return m_default; }
}
[ContextProperty("Понедельник", "Monday")]
public int Monday
{
get { return m_monday; }
}
[ContextProperty("Пятница", "Friday")]
public int Friday
{
get { return m_friday; }
}
[ContextProperty("Среда", "Wednesday")]
public int Wednesday
{
get { return m_wednesday; }
}
[ContextProperty("Суббота", "Saturday")]
public int Saturday
{
get { return m_saturday; }
}
[ContextProperty("Четверг", "Thursday")]
public int Thursday
{
get { return m_thursday; }
}
}
}