Пример #1
0
 public static ShapesBase.BaseLine LineToBase(Line line)
 {
     ShapesBase.BaseLine baseLine = new ShapesBase.BaseLine();
     baseLine.Stroke          = line.Stroke;
     baseLine.StrokeThickness = line.StrokeThickness;
     baseLine.StrokeDashArray = line.StrokeDashArray;
     baseLine.StrokeDashCap   = line.StrokeDashCap;
     baseLine.Thickness       = line.Margin;
     baseLine.X1 = line.X1;
     baseLine.X2 = line.X2;
     baseLine.Y1 = line.Y1;
     baseLine.Y2 = line.Y2;
     return(baseLine);
 }
Пример #2
0
        public static Line BaseToLine(ShapesBase.BaseLine baseLine)
        {
            Line line = new Line();

            line.Stroke          = baseLine.Stroke;
            line.StrokeThickness = baseLine.StrokeThickness;
            line.StrokeDashArray = baseLine.StrokeDashArray;
            line.StrokeDashCap   = baseLine.StrokeDashCap;
            line.Margin          = baseLine.Thickness;
            line.X1 = baseLine.X1;
            line.X2 = baseLine.X2;
            line.Y1 = baseLine.Y1;
            line.Y2 = baseLine.Y2;
            return(line);
        }