private void RestoreShapesFromGroup(GroupShape group) { foreach (var shape in group.Shapes) { shape.TransformMatrix.Multiply(group.TransformMatrix); Selection.Add(shape); Shapes.Add(shape); } }
private void RemoveGroup(GroupShape group) { Selection.Remove(group); Shapes.Remove(group); }
private void GroupAllSelectedShapes(GroupShape group) { foreach (var shape in Selection) { group.Shapes.Add(shape); Shapes.Remove(shape); } Selection.Clear(); SortCollectionByShapeID(group.Shapes); }
private GroupShape CreateGroupShape() { SetStartEndPoints(); RectangleF rect = GetSelectionRectangleBounds(); GroupShape group = new GroupShape(rect); GroupAllSelectedShapes(group); return group; }
public GroupShape(GroupShape groupShape) : base(groupShape) { }
public GroupShape(GroupShape rectangle) : base(rectangle) { SubItems = new List <Shape>(); }