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