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(); }
internal void LoadSeries() { _surfaceProfileChart.InitializeProfile(_profileSession); }