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; }
public void AddGroup(Group g) { Members.Add(g); }
public void PushGroup() { this.Model = new Group(this.Model); this.CurrentDepth++; }