public List <Point> List_PoChildToPoint(List <syPoChild> syPoChilds, syPoDrawing refCurrPoDrawing) { List <Point> rePoints = new List <Point>(); foreach (syPoChild spc in syPoChilds) { //Math.Round syPoRelation spr = new syPoRelation(); spr.SyGuid = System.Guid.NewGuid().ToString(); Point p_temp = PoChildToPoint(spc, refCurrPoDrawing); spr.SyPoint = p_temp; spr.SyChild = spc; MainRelation.Add(spr); rePoints.Add(p_temp); } if (rePoints.Count > 0) { return(rePoints); } else { return(null); } }
public List<Point> List_PoChildToPoint(List<syPoChild> syPoChilds, syPoDrawing refCurrPoDrawing) { List<Point> rePoints = new List<Point>(); foreach (syPoChild spc in syPoChilds) { //Math.Round syPoRelation spr = new syPoRelation(); spr.SyGuid = System.Guid.NewGuid().ToString(); Point p_temp = PoChildToPoint(spc, refCurrPoDrawing); spr.SyPoint = p_temp; spr.SyChild = spc; MainRelation.Add(spr); rePoints.Add(p_temp); } if (rePoints.Count > 0) return rePoints; else return null; }