-
Notifications
You must be signed in to change notification settings - Fork 3
/
GanttItemMetadata.cs
55 lines (50 loc) · 2.08 KB
/
GanttItemMetadata.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
52
53
54
55
using DevExpress.DashboardCommon;
using System.ComponentModel;
namespace DevExpress.DashboardWin.CustomItemExtension
{
[DisplayName("Gantt"),
CustomItemDescription("Create a Gantt dashboard item and insert it into the dashboard.\n\nThe Gantt item dispalys tasks organized in a tree list with a bar chart that visualizes a schedule data."),
CustomItemImage("DevExpress.DashboardWin.CustomItemExtension.Images.GanttItem.svg")]
public class GanttItemMetadata : CustomItemMetadata {
[DisplayName("ID"),
EmptyDataItemPlaceholder("ID"),
SupportInteractivity]
public Dimension ID {
get { return GetPropertyValue<Dimension>(); }
set { SetPropertyValue(value); }
}
[DisplayName("Parent ID"),
EmptyDataItemPlaceholder("Parent ID"),
SupportInteractivity]
public Dimension ParentID {
get { return GetPropertyValue<Dimension>(); }
set { SetPropertyValue(value); }
}
[DisplayName("Text"),
EmptyDataItemPlaceholder("Text"),
SupportColoring(DefaultColoringMode.None),
SupportInteractivity]
public Dimension Text {
get { return GetPropertyValue<Dimension>(); }
set { SetPropertyValue(value); }
}
[DisplayName("Start Date"),
EmptyDataItemPlaceholder("Start Date"),
SupportedDataTypes(DataSourceFieldType.DateTime),
DefaultGroupInterval(DateTimeGroupInterval.DayMonthYear),
SupportInteractivity]
public Dimension StartDate {
get { return GetPropertyValue<Dimension>(); }
set { SetPropertyValue(value); }
}
[DisplayName("Finish Date"),
EmptyDataItemPlaceholder("Finish Date"),
SupportedDataTypes(DataSourceFieldType.DateTime),
DefaultGroupInterval(DateTimeGroupInterval.DayMonthYear),
SupportInteractivity]
public Dimension FinishDate {
get { return GetPropertyValue<Dimension>(); }
set { SetPropertyValue(value); }
}
}
}