Beispiel #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);
        }
Beispiel #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;
        }