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