public override void Draw(object dc, ShapeRenderer renderer, double dx, double dy, object db, object r) { var state = base.BeginTransform(dc, renderer); if (Style != null) { renderer.DrawRectangle(dc, this, Style, dx, dy); } if (renderer.Selected.Contains(TopLeft)) { TopLeft.Draw(dc, renderer, dx, dy, db, r); } if (renderer.Selected.Contains(BottomRight)) { BottomRight.Draw(dc, renderer, dx, dy, db, r); } base.Draw(dc, renderer, dx, dy, db, r); base.EndTransform(dc, renderer, state); }