forked from ahyahy/OneScriptForms
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFlatStyle.cs
More file actions
38 lines (33 loc) · 1.6 KB
/
FlatStyle.cs
File metadata and controls
38 lines (33 loc) · 1.6 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
using ScriptEngine.Machine.Contexts;
using System.Windows.Forms;
namespace osf
{
[ContextClass ("КлПлоскийСтиль", "ClFlatStyle")]
public class ClFlatStyle : AutoContext<ClFlatStyle>
{
private int m_flat = (int)(System.Windows.Forms.FlatStyle)FlatStyle.Flat; // 0 Элемент управления выглядит плоским.
private int m_popup = (int)(System.Windows.Forms.FlatStyle)FlatStyle.Popup; // 1 Элемент управления выглядит плоским, пока указатель мыши перемещается над ним, после чего становится объемным.
private int m_standard = (int)(System.Windows.Forms.FlatStyle)FlatStyle.Standard; // 2 Элемент управления выглядит объемным.
private int m_system = (int)(System.Windows.Forms.FlatStyle)FlatStyle.System; // 3 Внешний вид элемента управления определяется операционной системой пользователя.
[ContextProperty("Всплывающий", "Popup")]
public int Popup
{
get { return m_popup; }
}
[ContextProperty("Плоский", "Flat")]
public int Flat
{
get { return m_flat; }
}
[ContextProperty("Система", "System")]
public int System
{
get { return m_system; }
}
[ContextProperty("Стандартный", "Standard")]
public int Standard
{
get { return m_standard; }
}
}
}