Exemplo n.º 1
0
        public override GraphicsBase CreateGraphics()
        {
            GraphicsBase b = new GraphicsLine(start, end, lineWidth, objectColor, actualScale);

            if (this.ID != 0)
            {
                b.Id         = this.ID;
                b.IsSelected = this.selected;
            }

            return(b);
        }
Exemplo n.º 2
0
        public PropertiesGraphicsLine(GraphicsLine line)
        {
            if (line == null)
            {
                throw new ArgumentNullException("line");
            }

            start       = line.Start;
            end         = line.End;
            lineWidth   = line.LineWidth;
            objectColor = line.ObjectColor;
            actualScale = line.ActualScale;
            ID          = line.Id;
            selected    = line.IsSelected;
        }