示例#1
0
 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();
 }
示例#2
0
 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();
 }
示例#3
0
        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();
        }