public override void Draw(Graphics g) { var pen = Style.Pen(Opacity); if (pen != null) { g.DrawEllipse(pen, Rect.AsBCL()); } var br = Style.Brush(Opacity); if (br != null) { g.FillEllipse(br, Rect.AsBCL()); } }
public override void Draw(Graphics g) { var pen = Style.Pen(Opacity); if (pen != null) { g.DrawRectangle(pen, Rect.X1, Rect.Y1, Rect.X2 - Rect.X1, Rect.Y2 - Rect.Y1); } var br = Style.Brush(Opacity); if (br != null) { g.FillRectangle(br, Rect.AsBCL()); } }