public void SetSections(IEnumerable <FailureMechanismSection> sections, string sourcePath) { if (sections == null) { throw new ArgumentNullException(nameof(sections)); } if (sourcePath == null) { throw new ArgumentNullException(nameof(sourcePath)); } sectionResults.Clear(); sectionCollection.SetSections(sections, sourcePath); foreach (FailureMechanismSection section in sections) { sectionResults.Add(new NonAdoptableWithProfileProbabilityFailureMechanismSectionResult(section)); } }
public void SetSections(IEnumerable <FailureMechanismSection> sections, string sourcePath) { if (sections == null) { throw new ArgumentNullException(nameof(sections)); } if (sourcePath == null) { throw new ArgumentNullException(nameof(sourcePath)); } ClearSectionDependentData(); sectionCollection.SetSections(sections, sourcePath); foreach (FailureMechanismSection failureMechanismSection in Sections) { AddSectionDependentData(failureMechanismSection); } }