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