public void PasteShape() { if (_copiedShape != null) { if (_copiedShape is GroupShape gs) { var shapes = gs.CopyShapes(); ShapeList.AddRange(shapes); } else { var newShape = _copiedShape.Copy(); ShapeList.Add(newShape); Select(newShape); } } }