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