Example #1
0
 public ItemLine Serialize(XLine line)
 {
     return(new ItemLine()
     {
         Id = line.Id,
         X1 = _blockHelper.GetX1(line),
         Y1 = _blockHelper.GetY1(line),
         X2 = _blockHelper.GetX2(line),
         Y2 = _blockHelper.GetY2(line),
         Stroke = _blockHelper.GetStroke(line),
         StartId = line.Start == null ? -1 : line.Start.Id,
         EndId = line.End == null ? -1 : line.End.Id
     });
 }