public void addGroup(AMTakeData take) { take.initGroups(); AMGroup g = new AMGroup(); g.init(take.getUniqueGroupID()); take.groupValues.Add(g); take.rootGroup.elements.Add(g.group_id); // select new group when it has been created selectedGroup = g.group_id; }
public void initGroups() { if(rootGroup == null) { AMGroup g = new AMGroup(); g.init(0); rootGroup = g; } }