public void Execute(ref Context context) { group.IsSelected = true; foreach (CaptionShape s in shapes.Get()) { s.IsSelected = false; context.shapes.Detach(s); } context.shapes.Attach(group); context.drawPanel.Invalidate(); }