Exemplo n.º 1
0
 public Group(Group parent)
 {
     Parent = parent;
     Members = new ArrayList();
     this.GroupType = GroupType.None;
     Occurrence = Occurrence.Required;
 }
Exemplo n.º 2
0
 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;
 }
Exemplo n.º 3
0
 public void AddGroup(Group g)
 {
     Members.Add(g);
 }
Exemplo n.º 4
0
 public void PushGroup()
 {
     this.Model = new Group(this.Model);
     this.CurrentDepth++;
 }