forked from ahyahy/OneScriptForms
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDialogResult.cs
More file actions
66 lines (56 loc) · 2.63 KB
/
DialogResult.cs
File metadata and controls
66 lines (56 loc) · 2.63 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 ("КлРезультатДиалога", "ClDialogResult")]
public class ClDialogResult : AutoContext<ClDialogResult>
{
private int m_none = (int)System.Windows.Forms.DialogResult.None; // 0 Диалоговое окно возвращает значение <B>Ничего</B>. Это означает, что модальное диалоговое окно не закрывается.
private int m_oK = (int)System.Windows.Forms.DialogResult.OK; // 1 Диалоговое окно возвращает значение <B>ОК</B>.
private int m_cancel = (int)System.Windows.Forms.DialogResult.Cancel; // 2 Диалоговое окно возвращает значение <B>Отмена</B>.
private int m_abort = (int)System.Windows.Forms.DialogResult.Abort; // 3 Диалоговое окно возвращает значение <B>Прервать</B>.
private int m_retry = (int)System.Windows.Forms.DialogResult.Retry; // 4 Диалоговое окно возвращает значение <B>Повторить</B>.
private int m_ignore = (int)System.Windows.Forms.DialogResult.Ignore; // 5 Диалоговое окно возвращает значение <B>Пропустить</B>.
private int m_yes = (int)System.Windows.Forms.DialogResult.Yes; // 6 Диалоговое окно возвращает значение <B>Да</B>.
private int m_no = (int)System.Windows.Forms.DialogResult.No; // 7 Диалоговое окно возвращает значение <B>Нет</B>.
[ContextProperty("Да", "Yes")]
public int Yes
{
get { return m_yes; }
}
[ContextProperty("Нет", "No")]
public int No
{
get { return m_no; }
}
[ContextProperty("ОК", "OK")]
public int OK
{
get { return m_oK; }
}
[ContextProperty("Отмена", "Cancel")]
public int Cancel
{
get { return m_cancel; }
}
[ContextProperty("Отсутствие", "None")]
public int None
{
get { return m_none; }
}
[ContextProperty("Повторить", "Retry")]
public int Retry
{
get { return m_retry; }
}
[ContextProperty("Прервать", "Abort")]
public int Abort
{
get { return m_abort; }
}
[ContextProperty("Пропустить", "Ignore")]
public int Ignore
{
get { return m_ignore; }
}
}
}