public void VisitGroup(GroupShapes group) { foreach (var shape in group.Children) { ReplaceGroupOnDrawing(shape, _mouseX, _mouseY, group.X, group.XMax, group.Y, group.YMax); } group.UpdateBounds(); }
public void VisitGroup(GroupShapes group) { foreach (var shape in group.Children) { shape.Accept(new ReplaceShape(shape.X + (_x - group.X), shape.Y + (_y - group.Y))); } group.UpdateBounds(); }
public void VisitGroup(GroupShapes group) { var x = (int)_params[0]; var y = (int)_params[1]; var color = (Color)_params[2]; group.Color = color; foreach (var shape in group.Children) { shape.Accept(new ReplaceShape(shape.X + (x - group.X), shape.Y + (y - group.Y))); } group.UpdateBounds(); }