public void load() { all = new CompoundGraphic(); all.add(new Dot(1, 2)); all.add(new Circle(5, 3, 10)); groupSelected(all.getShapes().ToArray()); }
public void groupSelected(Graphic[] components) { CompoundGraphic group = new CompoundGraphic(); foreach (Graphic component in components) { group.add(component); all.remove(component); } all.add(group); all.draw(); }