public override GraphicsBase CreateGraphics() { GraphicsBase b = new GraphicsEllipse(left, top, right, bottom, lineWidth, objectColor, actualScale); if (this.ID != 0) { b.Id = this.ID; b.IsSelected = this.selected; } return(b); }
public PropertiesGraphicsEllipse(GraphicsEllipse ellipse) { if (ellipse == null) { throw new ArgumentNullException("ellipse"); } left = ellipse.Left; top = ellipse.Top; right = ellipse.Right; bottom = ellipse.Bottom; lineWidth = ellipse.LineWidth; objectColor = ellipse.ObjectColor; actualScale = ellipse.ActualScale; ID = ellipse.Id; selected = ellipse.IsSelected; }