Index: Ringtoets/Integration/src/Ringtoets.Integration.Forms/Views/SectionResultViews/TechnicalInnovationResultView.cs =================================================================== diff -u -rf5e0ab14b71224218a3e19f4a8ccd44a7a463c32 -rbcc2d3436803fb470491fb610f1c9abd45f7ec3f --- Ringtoets/Integration/src/Ringtoets.Integration.Forms/Views/SectionResultViews/TechnicalInnovationResultView.cs (.../TechnicalInnovationResultView.cs) (revision f5e0ab14b71224218a3e19f4a8ccd44a7a463c32) +++ Ringtoets/Integration/src/Ringtoets.Integration.Forms/Views/SectionResultViews/TechnicalInnovationResultView.cs (.../TechnicalInnovationResultView.cs) (revision bcc2d3436803fb470491fb610f1c9abd45f7ec3f) @@ -25,6 +25,7 @@ using Core.Common.Base; using Core.Common.Util; using Ringtoets.Common.Data.FailureMechanism; +using Ringtoets.Common.Forms.Helpers; using Ringtoets.Common.Forms.Views; using Ringtoets.Integration.Data.StandAlone; using Ringtoets.Integration.Data.StandAlone.SectionResults; @@ -85,18 +86,13 @@ RingtoetsCommonFormsResources.FailureMechanismResultView_InitializeDataGridView_Assessment_layer_three); } - private bool HasPassedSimpleAssessment(int rowIndex) - { - var simpleAssessmentType = (SimpleAssessmentResultType) DataGridViewControl.GetCell(rowIndex, AssessmentLayerOneColumnIndex).Value; - return simpleAssessmentType == SimpleAssessmentResultType.NotApplicable || - simpleAssessmentType == SimpleAssessmentResultType.ProbabilityNegligible; - } - private void OnCellFormatting(object sender, DataGridViewCellFormattingEventArgs eventArgs) { if (eventArgs.ColumnIndex > AssessmentLayerOneColumnIndex) { - if (HasPassedSimpleAssessment(eventArgs.RowIndex)) + var simpleAssessmentResult = (SimpleAssessmentResultType) DataGridViewControl.GetCell(eventArgs.RowIndex, + AssessmentLayerOneColumnIndex).Value; + if (FailureMechanismResultViewHelper.HasPassedSimpleAssessment(simpleAssessmentResult)) { DataGridViewControl.DisableCell(eventArgs.RowIndex, eventArgs.ColumnIndex); }