Example #1
0
        public LineData ToLineData()
        {
            LineData lineData = new LineData(_centerP.X, _centerP.Y, _endP.X, _endP.Y, 0);

            foreach (var site in _sitePos)
            {
                lineData.AddSite(new SiteData(site.ID, site._rate, site._direction, (int)site._type, site.Name, site.UpName));
            }
            return(lineData);
        }