-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathMenuDef.cs
More file actions
48 lines (42 loc) · 1.23 KB
/
Copy pathMenuDef.cs
File metadata and controls
48 lines (42 loc) · 1.23 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
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SharpQuant.UI.Command;
namespace SharpQuant.UI.Utils
{
public enum MenuType
{
Menu,
Command,
Seperator
}
public interface IMenuDef
{
ICommand Command { get; set; }
string Description { get; set; }
int ID { get; set; }
string Image { get; set; }
MenuType MenuType { get; set; }
string Name { get; set; }
int ParentID { get; set; }
int ShortCutKeys { get; set; }
int SizeH { get; set; }
int SizeV { get; set; }
string Text { get; set; }
}
public class MenuDef : IMenuDef
{
public int ID { get; set; }
public int ParentID { get; set; }
public MenuType MenuType { get; set; }
public string Name { get; set; } //name of the control
public string Text { get; set; } //menu text to be displayed
public string Description { get; set; } //e.g. tooltip help
public int SizeH { get; set; }
public int SizeV { get; set; }
public string Image { get; set; }
public int ShortCutKeys { get; set; }
public ICommand Command { get; set; }
}
}