-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathIMessageBoxHandler.cs
51 lines (41 loc) · 968 Bytes
/
IMessageBoxHandler.cs
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
using System;
using System.Windows.Forms;
namespace WinForMono {
public enum UIResult {
RETRY,
CANCEL,
OK,
YES,
NO,
CONTINUE,
NONE
}
public enum UIButtonGroup {
OK = 0,
OK_CANCEL = 1,
ABORT_RETRY_IGNORE = 2,
YES_NO_CANCEL = 3,
YES_NO = 4,
RETRY_CANCEL = 5,
CANCEL_TRY_CONTINUE = 6
}
public enum UIIcon {
NONE = 0,
ERROR = 16,
QUESTION = 32,
WARNING = 48,
INFORMATION = 64
}
public interface IMessageBoxHandler {
UIResult spawn(
string message="DEFAULT_MESSAGE",
string title="DEFAULT_TITLE",
UIButtonGroup buttons=UIButtonGroup.OK,
UIIcon icon=UIIcon.NONE,
int default_button=0,
MessageBoxOptions options=0,
string help_path=null,
string help_keyword=null
);
}
}