示例#1
0
文件: syCtDrawing.cs 项目: icprog/PC
        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);
            }
        }
示例#2
0
        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;

        }