Index: Ringtoets/HeightStructures/src/Ringtoets.HeightStructures.Forms/Views/HeightStructuresFailureMechanismResultView.cs =================================================================== diff -u -r1f7a833d643271fae126168babff9144312b090d -r6351c078e52e7a091c3307337ba66e18fde91525 --- Ringtoets/HeightStructures/src/Ringtoets.HeightStructures.Forms/Views/HeightStructuresFailureMechanismResultView.cs (.../HeightStructuresFailureMechanismResultView.cs) (revision 1f7a833d643271fae126168babff9144312b090d) +++ Ringtoets/HeightStructures/src/Ringtoets.HeightStructures.Forms/Views/HeightStructuresFailureMechanismResultView.cs (.../HeightStructuresFailureMechanismResultView.cs) (revision 6351c078e52e7a091c3307337ba66e18fde91525) @@ -36,7 +36,8 @@ /// /// The view for the . /// - public class HeightStructuresFailureMechanismResultView : FailureMechanismResultView> + public class HeightStructuresFailureMechanismResultView + : FailureMechanismResultView> { private const int assessmentLayerTwoAIndex = 2; private readonly IAssessmentSection assessmentSection; @@ -48,27 +49,19 @@ /// Creates a new instance of . /// /// The assessment section the failure mechanism result belongs to. - /// The failure mechanism this view belongs to. - /// The collection of failure mechanism section results. - /// Thrown when any input parameter is null. + /// public HeightStructuresFailureMechanismResultView( IAssessmentSection assessmentSection, HeightStructuresFailureMechanism failureMechanism, IObservableEnumerable> failureMechanismSectionResults) - : base(failureMechanismSectionResults) + : base(failureMechanism, failureMechanismSectionResults) { if (assessmentSection == null) { throw new ArgumentNullException(nameof(assessmentSection)); } - if (failureMechanism == null) - { - throw new ArgumentNullException(nameof(failureMechanism)); - } - this.assessmentSection = assessmentSection; - FailureMechanism = failureMechanism; DataGridViewControl.CellFormatting += ShowAssessmentLayerErrors; DataGridViewControl.CellFormatting += DisableIrrelevantFieldsFormatting; @@ -97,11 +90,6 @@ UpdateDataGridViewDataSource(); } - /// - /// Gets the height structures failure mechanism - /// - public HeightStructuresFailureMechanism FailureMechanism { get; } - protected override void Dispose(bool disposing) { DataGridViewControl.CellFormatting -= ShowAssessmentLayerErrors;