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