private void SetHeadings() { try { Headings.Clear(); LASSectionModel lasSectionModel = Sections[SelectedCurveSectionIndex]; lasSectionModel.Content.ForEach(content => { LASInformationModel lasInformationModel = new LASInformationModel(); string[] splitContent = content.SplitOnWhitespace(); lasInformationModel.Name = splitContent[0]; lasInformationModel.MeasurementUnit = splitContent[1]; Headings.Add(lasInformationModel); }); } catch { // ignored } }