示例#1
0
 public void AddGroup(Group g)
 {
     Members.Add(g);
 }
示例#2
0
 public Group(Group parent)
 {
     Parent = parent;
     Members = new ArrayList();
     this.GroupType = GroupType.None;
     Occurrence = Occurrence.Required;
 }
示例#3
0
 public int PopGroup()
 {
     if (CurrentDepth == 0) return -1;
     CurrentDepth--;
     Model.Parent.AddGroup(Model);
     Model = Model.Parent;
     return CurrentDepth;
 }
示例#4
0
 public void PushGroup()
 {
     Model = new Group(Model);
     CurrentDepth++;
 }
示例#5
0
 public ContentModel()
 {
     Model = new Group(null);
 }