/
ProjectGroup.cs
36 lines (33 loc) · 988 Bytes
/
ProjectGroup.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
using System;
using DevExpress.Xpo;
using DevExpress.ExpressApp;
using DevExpress.Persistent.Base;
using DevExpress.Persistent.BaseImpl;
using DevExpress.Persistent.Validation;
using DevExpress.Persistent.Base.General;
using System.ComponentModel;
namespace HowToUseTreeListEditor.Module {
public class ProjectGroup : Category {
protected override ITreeNode Parent {
get {
return null;
}
}
protected override IBindingList Children {
get {
return Projects;
}
}
public ProjectGroup(Session session) : base(session) { }
public ProjectGroup(Session session, string name)
: base(session) {
this.Name = name;
}
[Association("ProjectGroup-Projects"), Aggregated]
public XPCollection<Project> Projects {
get {
return GetCollection<Project>("Projects");
}
}
}
}