Ejemplo n.º 1
0
        private void AddProfile(ProfileLine profileLine, ProfileSurface profileSurface)
        {
            var lineId = _profileSession.ProfileLines.Last().Id + 1;

            profileLine.Id        = lineId;
            profileSurface.LineId = lineId;

            var profileLines    = new List <ProfileLine>();
            var profileSurfaces = new List <ProfileSurface>();

            profileLines.AddRange(_profileSession.ProfileLines);
            profileSurfaces.AddRange(_profileSession.ProfileSurfaces);

            profileLines.Add(profileLine);
            profileSurfaces.Add(profileSurface);

            _profileSession.ProfileLines    = profileLines.ToArray();
            _profileSession.ProfileSurfaces = profileSurfaces.ToArray();

            _profileSession.SetSegments(profileLine.SpatialReference, _profileSession.ProfileLines.Last());

            _surfaceProfileChart.InitializeProfile();
            _surfaceProfileChart.SetControlSize();
        }
Ejemplo n.º 2
0
 internal void LoadSeries()
 {
     _surfaceProfileChart.InitializeProfile(_profileSession);
 }