Пример #1
0
        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));
            }
        }
Пример #2
0
        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);
            }
        }