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