Index: Ringtoets/ClosingStructures/src/Ringtoets.ClosingStructures.Forms/Views/ClosingStructuresFailureMechanismResultView.cs =================================================================== diff -u -rbc1babf3ccf2bc4e1fed91210f2cc5d2b7dea774 -rc47cc3d2e42f1cb69ccf6e47ee0922f05dfd68dd --- Ringtoets/ClosingStructures/src/Ringtoets.ClosingStructures.Forms/Views/ClosingStructuresFailureMechanismResultView.cs (.../ClosingStructuresFailureMechanismResultView.cs) (revision bc1babf3ccf2bc4e1fed91210f2cc5d2b7dea774) +++ Ringtoets/ClosingStructures/src/Ringtoets.ClosingStructures.Forms/Views/ClosingStructuresFailureMechanismResultView.cs (.../ClosingStructuresFailureMechanismResultView.cs) (revision c47cc3d2e42f1cb69ccf6e47ee0922f05dfd68dd) @@ -139,8 +139,7 @@ { if (eventArgs.ColumnIndex > SimpleAssessmentColumnIndex) { - SimpleAssessmentResultType simpleAssessmentResult = - ((ClosingStructuresFailureMechanismSectionResultRow) GetDataAtRow(eventArgs.RowIndex)).SimpleAssessmentResult; + SimpleAssessmentResultType simpleAssessmentResult = GetDataAtRow(eventArgs.RowIndex).SimpleAssessmentResult; if (FailureMechanismResultViewHelper.SimpleAssessmentIsSufficient(simpleAssessmentResult)) { DataGridViewControl.DisableCell(eventArgs.RowIndex, eventArgs.ColumnIndex); @@ -159,7 +158,7 @@ return; } - var resultRow = (ClosingStructuresFailureMechanismSectionResultRow) GetDataAtRow(e.RowIndex); + ClosingStructuresFailureMechanismSectionResultRow resultRow = GetDataAtRow(e.RowIndex); DataGridViewCell currentDataGridViewCell = DataGridViewControl.GetCell(e.RowIndex, e.ColumnIndex); StructuresCalculation normativeCalculation = resultRow.GetSectionResultCalculation(); Index: Ringtoets/Common/src/Ringtoets.Common.Forms/Views/FailureMechanismResultView.cs =================================================================== diff -u -rbc1babf3ccf2bc4e1fed91210f2cc5d2b7dea774 -rc47cc3d2e42f1cb69ccf6e47ee0922f05dfd68dd --- Ringtoets/Common/src/Ringtoets.Common.Forms/Views/FailureMechanismResultView.cs (.../FailureMechanismResultView.cs) (revision bc1babf3ccf2bc4e1fed91210f2cc5d2b7dea774) +++ Ringtoets/Common/src/Ringtoets.Common.Forms/Views/FailureMechanismResultView.cs (.../FailureMechanismResultView.cs) (revision c47cc3d2e42f1cb69ccf6e47ee0922f05dfd68dd) @@ -138,9 +138,9 @@ /// /// The position of the row in the data source. /// The data bound to the row at index . - protected object GetDataAtRow(int rowIndex) + protected TSectionResultRow GetDataAtRow(int rowIndex) { - return DataGridViewControl.GetRowFromIndex(rowIndex).DataBoundItem; + return (TSectionResultRow) DataGridViewControl.GetRowFromIndex(rowIndex).DataBoundItem; } /// Index: Ringtoets/DuneErosion/src/Ringtoets.DuneErosion.Forms/Views/DuneErosionFailureMechanismResultView.cs =================================================================== diff -u -rbc1babf3ccf2bc4e1fed91210f2cc5d2b7dea774 -rc47cc3d2e42f1cb69ccf6e47ee0922f05dfd68dd --- Ringtoets/DuneErosion/src/Ringtoets.DuneErosion.Forms/Views/DuneErosionFailureMechanismResultView.cs (.../DuneErosionFailureMechanismResultView.cs) (revision bc1babf3ccf2bc4e1fed91210f2cc5d2b7dea774) +++ Ringtoets/DuneErosion/src/Ringtoets.DuneErosion.Forms/Views/DuneErosionFailureMechanismResultView.cs (.../DuneErosionFailureMechanismResultView.cs) (revision c47cc3d2e42f1cb69ccf6e47ee0922f05dfd68dd) @@ -105,8 +105,7 @@ { if (eventArgs.ColumnIndex > SimpleAssessmentColumnIndex) { - SimpleAssessmentResultValidityOnlyType simpleAssessmentResult = - ((DuneErosionSectionResultRow) GetDataAtRow(eventArgs.RowIndex)).SimpleAssessmentResult; + SimpleAssessmentResultValidityOnlyType simpleAssessmentResult = GetDataAtRow(eventArgs.RowIndex).SimpleAssessmentResult; if (FailureMechanismResultViewHelper.SimpleAssessmentIsSufficient(simpleAssessmentResult)) { DataGridViewControl.DisableCell(eventArgs.RowIndex, eventArgs.ColumnIndex); Index: Ringtoets/GrassCoverErosionInwards/src/Ringtoets.GrassCoverErosionInwards.Forms/Views/GrassCoverErosionInwardsFailureMechanismResultView.cs =================================================================== diff -u -rbc1babf3ccf2bc4e1fed91210f2cc5d2b7dea774 -rc47cc3d2e42f1cb69ccf6e47ee0922f05dfd68dd --- Ringtoets/GrassCoverErosionInwards/src/Ringtoets.GrassCoverErosionInwards.Forms/Views/GrassCoverErosionInwardsFailureMechanismResultView.cs (.../GrassCoverErosionInwardsFailureMechanismResultView.cs) (revision bc1babf3ccf2bc4e1fed91210f2cc5d2b7dea774) +++ Ringtoets/GrassCoverErosionInwards/src/Ringtoets.GrassCoverErosionInwards.Forms/Views/GrassCoverErosionInwardsFailureMechanismResultView.cs (.../GrassCoverErosionInwardsFailureMechanismResultView.cs) (revision c47cc3d2e42f1cb69ccf6e47ee0922f05dfd68dd) @@ -142,8 +142,7 @@ { if (eventArgs.ColumnIndex > SimpleAssessmentColumnIndex) { - SimpleAssessmentResultValidityOnlyType simpleAssessmentResult = - ((GrassCoverErosionInwardsFailureMechanismSectionResultRow) GetDataAtRow(eventArgs.RowIndex)).SimpleAssessmentResult; + SimpleAssessmentResultValidityOnlyType simpleAssessmentResult = GetDataAtRow(eventArgs.RowIndex).SimpleAssessmentResult; if (FailureMechanismResultViewHelper.SimpleAssessmentIsSufficient(simpleAssessmentResult)) { DataGridViewControl.DisableCell(eventArgs.RowIndex, eventArgs.ColumnIndex); @@ -162,7 +161,7 @@ return; } - var resultRow = (GrassCoverErosionInwardsFailureMechanismSectionResultRow) GetDataAtRow(e.RowIndex); + GrassCoverErosionInwardsFailureMechanismSectionResultRow resultRow = GetDataAtRow(e.RowIndex); DataGridViewCell currentDataGridViewCell = DataGridViewControl.GetCell(e.RowIndex, e.ColumnIndex); GrassCoverErosionInwardsCalculation normativeCalculation = resultRow.GetSectionResultCalculation(); Index: Ringtoets/GrassCoverErosionOutwards/src/Ringtoets.GrassCoverErosionOutwards.Forms/Views/GrassCoverErosionOutwardsFailureMechanismResultView.cs =================================================================== diff -u -rbc1babf3ccf2bc4e1fed91210f2cc5d2b7dea774 -rc47cc3d2e42f1cb69ccf6e47ee0922f05dfd68dd --- Ringtoets/GrassCoverErosionOutwards/src/Ringtoets.GrassCoverErosionOutwards.Forms/Views/GrassCoverErosionOutwardsFailureMechanismResultView.cs (.../GrassCoverErosionOutwardsFailureMechanismResultView.cs) (revision bc1babf3ccf2bc4e1fed91210f2cc5d2b7dea774) +++ Ringtoets/GrassCoverErosionOutwards/src/Ringtoets.GrassCoverErosionOutwards.Forms/Views/GrassCoverErosionOutwardsFailureMechanismResultView.cs (.../GrassCoverErosionOutwardsFailureMechanismResultView.cs) (revision c47cc3d2e42f1cb69ccf6e47ee0922f05dfd68dd) @@ -105,8 +105,7 @@ { if (eventArgs.ColumnIndex > SimpleAssessmentColumnIndex) { - SimpleAssessmentResultType simpleAssessmentResult = - ((GrassCoverErosionOutwardsFailureMechanismSectionResultRow) GetDataAtRow(eventArgs.RowIndex)).SimpleAssessmentResult; + SimpleAssessmentResultType simpleAssessmentResult = GetDataAtRow(eventArgs.RowIndex).SimpleAssessmentResult; if (FailureMechanismResultViewHelper.SimpleAssessmentIsSufficient(simpleAssessmentResult)) { DataGridViewControl.DisableCell(eventArgs.RowIndex, eventArgs.ColumnIndex); Index: Ringtoets/HeightStructures/src/Ringtoets.HeightStructures.Forms/Views/HeightStructuresFailureMechanismResultView.cs =================================================================== diff -u -rbc1babf3ccf2bc4e1fed91210f2cc5d2b7dea774 -rc47cc3d2e42f1cb69ccf6e47ee0922f05dfd68dd --- Ringtoets/HeightStructures/src/Ringtoets.HeightStructures.Forms/Views/HeightStructuresFailureMechanismResultView.cs (.../HeightStructuresFailureMechanismResultView.cs) (revision bc1babf3ccf2bc4e1fed91210f2cc5d2b7dea774) +++ Ringtoets/HeightStructures/src/Ringtoets.HeightStructures.Forms/Views/HeightStructuresFailureMechanismResultView.cs (.../HeightStructuresFailureMechanismResultView.cs) (revision c47cc3d2e42f1cb69ccf6e47ee0922f05dfd68dd) @@ -144,8 +144,7 @@ { if (eventArgs.ColumnIndex > SimpleAssessmentColumnIndex) { - SimpleAssessmentResultType simpleAssessmentResult = - ((HeightStructuresFailureMechanismSectionResultRow) GetDataAtRow(eventArgs.RowIndex)).SimpleAssessmentResult; + SimpleAssessmentResultType simpleAssessmentResult = GetDataAtRow(eventArgs.RowIndex).SimpleAssessmentResult; if (FailureMechanismResultViewHelper.SimpleAssessmentIsSufficient(simpleAssessmentResult)) { DataGridViewControl.DisableCell(eventArgs.RowIndex, eventArgs.ColumnIndex); @@ -164,7 +163,7 @@ return; } - var resultRow = (HeightStructuresFailureMechanismSectionResultRow) GetDataAtRow(e.RowIndex); + HeightStructuresFailureMechanismSectionResultRow resultRow = GetDataAtRow(e.RowIndex); DataGridViewCell currentDataGridViewCell = DataGridViewControl.GetCell(e.RowIndex, e.ColumnIndex); StructuresCalculation normativeCalculation = resultRow.GetSectionResultCalculation(); Index: Ringtoets/Integration/src/Ringtoets.Integration.Forms/Views/SectionResultViews/GrassCoverSlipOffInwardsResultView.cs =================================================================== diff -u -rbc1babf3ccf2bc4e1fed91210f2cc5d2b7dea774 -rc47cc3d2e42f1cb69ccf6e47ee0922f05dfd68dd --- Ringtoets/Integration/src/Ringtoets.Integration.Forms/Views/SectionResultViews/GrassCoverSlipOffInwardsResultView.cs (.../GrassCoverSlipOffInwardsResultView.cs) (revision bc1babf3ccf2bc4e1fed91210f2cc5d2b7dea774) +++ Ringtoets/Integration/src/Ringtoets.Integration.Forms/Views/SectionResultViews/GrassCoverSlipOffInwardsResultView.cs (.../GrassCoverSlipOffInwardsResultView.cs) (revision c47cc3d2e42f1cb69ccf6e47ee0922f05dfd68dd) @@ -107,8 +107,7 @@ { if (eventArgs.ColumnIndex > SimpleAssessmentColumnIndex) { - SimpleAssessmentResultType simpleAssessmentResult = - ((GrassCoverSlipOffInwardsSectionResultRow) GetDataAtRow(eventArgs.RowIndex)).SimpleAssessmentResult; + SimpleAssessmentResultType simpleAssessmentResult = GetDataAtRow(eventArgs.RowIndex).SimpleAssessmentResult; if (FailureMechanismResultViewHelper.SimpleAssessmentIsSufficient(simpleAssessmentResult)) { DataGridViewControl.DisableCell(eventArgs.RowIndex, eventArgs.ColumnIndex); Index: Ringtoets/Integration/src/Ringtoets.Integration.Forms/Views/SectionResultViews/GrassCoverSlipOffOutwardsResultView.cs =================================================================== diff -u -rbc1babf3ccf2bc4e1fed91210f2cc5d2b7dea774 -rc47cc3d2e42f1cb69ccf6e47ee0922f05dfd68dd --- Ringtoets/Integration/src/Ringtoets.Integration.Forms/Views/SectionResultViews/GrassCoverSlipOffOutwardsResultView.cs (.../GrassCoverSlipOffOutwardsResultView.cs) (revision bc1babf3ccf2bc4e1fed91210f2cc5d2b7dea774) +++ Ringtoets/Integration/src/Ringtoets.Integration.Forms/Views/SectionResultViews/GrassCoverSlipOffOutwardsResultView.cs (.../GrassCoverSlipOffOutwardsResultView.cs) (revision c47cc3d2e42f1cb69ccf6e47ee0922f05dfd68dd) @@ -107,8 +107,7 @@ { if (eventArgs.ColumnIndex > SimpleAssessmentColumnIndex) { - SimpleAssessmentResultType simpleAssessmentResult = - ((GrassCoverSlipOffOutwardsSectionResultRow) GetDataAtRow(eventArgs.RowIndex)).SimpleAssessmentResult; + SimpleAssessmentResultType simpleAssessmentResult = GetDataAtRow(eventArgs.RowIndex).SimpleAssessmentResult; if (FailureMechanismResultViewHelper.SimpleAssessmentIsSufficient(simpleAssessmentResult)) { DataGridViewControl.DisableCell(eventArgs.RowIndex, eventArgs.ColumnIndex); Index: Ringtoets/Integration/src/Ringtoets.Integration.Forms/Views/SectionResultViews/MacroStabilityOutwardsResultView.cs =================================================================== diff -u -rbc1babf3ccf2bc4e1fed91210f2cc5d2b7dea774 -rc47cc3d2e42f1cb69ccf6e47ee0922f05dfd68dd --- Ringtoets/Integration/src/Ringtoets.Integration.Forms/Views/SectionResultViews/MacroStabilityOutwardsResultView.cs (.../MacroStabilityOutwardsResultView.cs) (revision bc1babf3ccf2bc4e1fed91210f2cc5d2b7dea774) +++ Ringtoets/Integration/src/Ringtoets.Integration.Forms/Views/SectionResultViews/MacroStabilityOutwardsResultView.cs (.../MacroStabilityOutwardsResultView.cs) (revision c47cc3d2e42f1cb69ccf6e47ee0922f05dfd68dd) @@ -96,8 +96,7 @@ { if (eventArgs.ColumnIndex > SimpleAssessmentColumnIndex) { - SimpleAssessmentResultType simpleAssessmentResult = - ((MacroStabilityOutwardsSectionResultRow) GetDataAtRow(eventArgs.RowIndex)).SimpleAssessmentResult; + SimpleAssessmentResultType simpleAssessmentResult = GetDataAtRow(eventArgs.RowIndex).SimpleAssessmentResult; if (FailureMechanismResultViewHelper.SimpleAssessmentIsSufficient(simpleAssessmentResult)) { DataGridViewControl.DisableCell(eventArgs.RowIndex, eventArgs.ColumnIndex); Index: Ringtoets/Integration/src/Ringtoets.Integration.Forms/Views/SectionResultViews/MicrostabilityResultView.cs =================================================================== diff -u -rbc1babf3ccf2bc4e1fed91210f2cc5d2b7dea774 -rc47cc3d2e42f1cb69ccf6e47ee0922f05dfd68dd --- Ringtoets/Integration/src/Ringtoets.Integration.Forms/Views/SectionResultViews/MicrostabilityResultView.cs (.../MicrostabilityResultView.cs) (revision bc1babf3ccf2bc4e1fed91210f2cc5d2b7dea774) +++ Ringtoets/Integration/src/Ringtoets.Integration.Forms/Views/SectionResultViews/MicrostabilityResultView.cs (.../MicrostabilityResultView.cs) (revision c47cc3d2e42f1cb69ccf6e47ee0922f05dfd68dd) @@ -106,8 +106,7 @@ { if (eventArgs.ColumnIndex > SimpleAssessmentColumnIndex) { - SimpleAssessmentResultType simpleAssessmentResult = - ((MicrostabilitySectionResultRow) GetDataAtRow(eventArgs.RowIndex)).SimpleAssessmentResult; + SimpleAssessmentResultType simpleAssessmentResult = GetDataAtRow(eventArgs.RowIndex).SimpleAssessmentResult; if (FailureMechanismResultViewHelper.SimpleAssessmentIsSufficient(simpleAssessmentResult)) { DataGridViewControl.DisableCell(eventArgs.RowIndex, eventArgs.ColumnIndex); Index: Ringtoets/Integration/src/Ringtoets.Integration.Forms/Views/SectionResultViews/PipingStructureResultView.cs =================================================================== diff -u -rbc1babf3ccf2bc4e1fed91210f2cc5d2b7dea774 -rc47cc3d2e42f1cb69ccf6e47ee0922f05dfd68dd --- Ringtoets/Integration/src/Ringtoets.Integration.Forms/Views/SectionResultViews/PipingStructureResultView.cs (.../PipingStructureResultView.cs) (revision bc1babf3ccf2bc4e1fed91210f2cc5d2b7dea774) +++ Ringtoets/Integration/src/Ringtoets.Integration.Forms/Views/SectionResultViews/PipingStructureResultView.cs (.../PipingStructureResultView.cs) (revision c47cc3d2e42f1cb69ccf6e47ee0922f05dfd68dd) @@ -106,8 +106,7 @@ { if (eventArgs.ColumnIndex > SimpleAssessmentColumnIndex) { - SimpleAssessmentResultType simpleAssessmentResult = - ((PipingStructureSectionResultRow) GetDataAtRow(eventArgs.RowIndex)).SimpleAssessmentResult; + SimpleAssessmentResultType simpleAssessmentResult = GetDataAtRow(eventArgs.RowIndex).SimpleAssessmentResult; if (FailureMechanismResultViewHelper.SimpleAssessmentIsSufficient(simpleAssessmentResult)) { DataGridViewControl.DisableCell(eventArgs.RowIndex, eventArgs.ColumnIndex); Index: Ringtoets/Integration/src/Ringtoets.Integration.Forms/Views/SectionResultViews/StrengthStabilityLengthwiseConstructionResultView.cs =================================================================== diff -u -rbc1babf3ccf2bc4e1fed91210f2cc5d2b7dea774 -rc47cc3d2e42f1cb69ccf6e47ee0922f05dfd68dd --- Ringtoets/Integration/src/Ringtoets.Integration.Forms/Views/SectionResultViews/StrengthStabilityLengthwiseConstructionResultView.cs (.../StrengthStabilityLengthwiseConstructionResultView.cs) (revision bc1babf3ccf2bc4e1fed91210f2cc5d2b7dea774) +++ Ringtoets/Integration/src/Ringtoets.Integration.Forms/Views/SectionResultViews/StrengthStabilityLengthwiseConstructionResultView.cs (.../StrengthStabilityLengthwiseConstructionResultView.cs) (revision c47cc3d2e42f1cb69ccf6e47ee0922f05dfd68dd) @@ -94,8 +94,7 @@ { if (eventArgs.ColumnIndex > SimpleAssessmentColumnIndex) { - SimpleAssessmentResultType simpleAssessmentResult = - ((StrengthStabilityLengthwiseConstructionSectionResultRow) GetDataAtRow(eventArgs.RowIndex)).SimpleAssessmentResult; + SimpleAssessmentResultType simpleAssessmentResult = GetDataAtRow(eventArgs.RowIndex).SimpleAssessmentResult; if (FailureMechanismResultViewHelper.SimpleAssessmentIsSufficient(simpleAssessmentResult)) { DataGridViewControl.DisableCell(eventArgs.RowIndex, eventArgs.ColumnIndex); Index: Ringtoets/Integration/src/Ringtoets.Integration.Forms/Views/SectionResultViews/TechnicalInnovationResultView.cs =================================================================== diff -u -rbc1babf3ccf2bc4e1fed91210f2cc5d2b7dea774 -rc47cc3d2e42f1cb69ccf6e47ee0922f05dfd68dd --- Ringtoets/Integration/src/Ringtoets.Integration.Forms/Views/SectionResultViews/TechnicalInnovationResultView.cs (.../TechnicalInnovationResultView.cs) (revision bc1babf3ccf2bc4e1fed91210f2cc5d2b7dea774) +++ Ringtoets/Integration/src/Ringtoets.Integration.Forms/Views/SectionResultViews/TechnicalInnovationResultView.cs (.../TechnicalInnovationResultView.cs) (revision c47cc3d2e42f1cb69ccf6e47ee0922f05dfd68dd) @@ -93,8 +93,7 @@ { if (eventArgs.ColumnIndex > SimpleAssessmentColumnIndex) { - SimpleAssessmentResultType simpleAssessmentResult = - ((TechnicalInnovationSectionResultRow) GetDataAtRow(eventArgs.RowIndex)).SimpleAssessmentResult; + SimpleAssessmentResultType simpleAssessmentResult = GetDataAtRow(eventArgs.RowIndex).SimpleAssessmentResult; if (FailureMechanismResultViewHelper.SimpleAssessmentIsSufficient(simpleAssessmentResult)) { DataGridViewControl.DisableCell(eventArgs.RowIndex, eventArgs.ColumnIndex); Index: Ringtoets/Integration/src/Ringtoets.Integration.Forms/Views/SectionResultViews/WaterPressureAsphaltCoverResultView.cs =================================================================== diff -u -rbc1babf3ccf2bc4e1fed91210f2cc5d2b7dea774 -rc47cc3d2e42f1cb69ccf6e47ee0922f05dfd68dd --- Ringtoets/Integration/src/Ringtoets.Integration.Forms/Views/SectionResultViews/WaterPressureAsphaltCoverResultView.cs (.../WaterPressureAsphaltCoverResultView.cs) (revision bc1babf3ccf2bc4e1fed91210f2cc5d2b7dea774) +++ Ringtoets/Integration/src/Ringtoets.Integration.Forms/Views/SectionResultViews/WaterPressureAsphaltCoverResultView.cs (.../WaterPressureAsphaltCoverResultView.cs) (revision c47cc3d2e42f1cb69ccf6e47ee0922f05dfd68dd) @@ -94,8 +94,7 @@ { if (eventArgs.ColumnIndex > SimpleAssessmentColumnIndex) { - SimpleAssessmentResultType simpleAssessmentResult = - ((WaterPressureAsphaltCoverSectionResultRow) GetDataAtRow(eventArgs.RowIndex)).SimpleAssessmentResult; + SimpleAssessmentResultType simpleAssessmentResult = GetDataAtRow(eventArgs.RowIndex).SimpleAssessmentResult; if (FailureMechanismResultViewHelper.SimpleAssessmentIsSufficient(simpleAssessmentResult)) { DataGridViewControl.DisableCell(eventArgs.RowIndex, eventArgs.ColumnIndex); Index: Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.Forms/Views/MacroStabilityInwardsFailureMechanismResultView.cs =================================================================== diff -u -rbc1babf3ccf2bc4e1fed91210f2cc5d2b7dea774 -rc47cc3d2e42f1cb69ccf6e47ee0922f05dfd68dd --- Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.Forms/Views/MacroStabilityInwardsFailureMechanismResultView.cs (.../MacroStabilityInwardsFailureMechanismResultView.cs) (revision bc1babf3ccf2bc4e1fed91210f2cc5d2b7dea774) +++ Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.Forms/Views/MacroStabilityInwardsFailureMechanismResultView.cs (.../MacroStabilityInwardsFailureMechanismResultView.cs) (revision c47cc3d2e42f1cb69ccf6e47ee0922f05dfd68dd) @@ -154,8 +154,7 @@ { if (eventArgs.ColumnIndex > SimpleAssessmentColumnIndex) { - SimpleAssessmentResultType simpleAssessmentResult = - ((MacroStabilityInwardsFailureMechanismSectionResultRow) GetDataAtRow(eventArgs.RowIndex)).SimpleAssessmentResult; + SimpleAssessmentResultType simpleAssessmentResult = GetDataAtRow(eventArgs.RowIndex).SimpleAssessmentResult; if (FailureMechanismResultViewHelper.SimpleAssessmentIsSufficient(simpleAssessmentResult)) { DataGridViewControl.DisableCell(eventArgs.RowIndex, eventArgs.ColumnIndex); @@ -176,7 +175,7 @@ DataGridViewCell currentDataGridViewCell = DataGridViewControl.GetCell(e.RowIndex, e.ColumnIndex); - var resultRow = (MacroStabilityInwardsFailureMechanismSectionResultRow) GetDataAtRow(e.RowIndex); + MacroStabilityInwardsFailureMechanismSectionResultRow resultRow = GetDataAtRow(e.RowIndex); MacroStabilityInwardsFailureMechanismSectionResult rowObject = resultRow.GetSectionResult; if (rowObject.SimpleAssessmentResult == SimpleAssessmentResultType.ProbabilityNegligible || rowObject.SimpleAssessmentResult == SimpleAssessmentResultType.NotApplicable) Index: Ringtoets/Piping/src/Ringtoets.Piping.Forms/Views/PipingFailureMechanismResultView.cs =================================================================== diff -u -rbc1babf3ccf2bc4e1fed91210f2cc5d2b7dea774 -rc47cc3d2e42f1cb69ccf6e47ee0922f05dfd68dd --- Ringtoets/Piping/src/Ringtoets.Piping.Forms/Views/PipingFailureMechanismResultView.cs (.../PipingFailureMechanismResultView.cs) (revision bc1babf3ccf2bc4e1fed91210f2cc5d2b7dea774) +++ Ringtoets/Piping/src/Ringtoets.Piping.Forms/Views/PipingFailureMechanismResultView.cs (.../PipingFailureMechanismResultView.cs) (revision c47cc3d2e42f1cb69ccf6e47ee0922f05dfd68dd) @@ -151,8 +151,7 @@ if (eventArgs.ColumnIndex > SimpleAssessmentColumnIndex) { - SimpleAssessmentResultType simpleAssessmentResult = - ((PipingFailureMechanismSectionResultRow) GetDataAtRow(eventArgs.RowIndex)).SimpleAssessmentResult; + SimpleAssessmentResultType simpleAssessmentResult = GetDataAtRow(eventArgs.RowIndex).SimpleAssessmentResult; if (FailureMechanismResultViewHelper.SimpleAssessmentIsSufficient(simpleAssessmentResult)) { DataGridViewControl.DisableCell(eventArgs.RowIndex, eventArgs.ColumnIndex); @@ -173,7 +172,7 @@ DataGridViewCell currentDataGridViewCell = DataGridViewControl.GetCell(e.RowIndex, e.ColumnIndex); - var resultRow = (PipingFailureMechanismSectionResultRow) GetDataAtRow(e.RowIndex); + PipingFailureMechanismSectionResultRow resultRow = GetDataAtRow(e.RowIndex); PipingFailureMechanismSectionResult rowObject = resultRow.GetSectionResult; if (rowObject.SimpleAssessmentResult == SimpleAssessmentResultType.ProbabilityNegligible || rowObject.SimpleAssessmentResult == SimpleAssessmentResultType.NotApplicable) Index: Ringtoets/StabilityPointStructures/src/Ringtoets.StabilityPointStructures.Forms/Views/StabilityPointStructuresFailureMechanismResultView.cs =================================================================== diff -u -rbc1babf3ccf2bc4e1fed91210f2cc5d2b7dea774 -rc47cc3d2e42f1cb69ccf6e47ee0922f05dfd68dd --- Ringtoets/StabilityPointStructures/src/Ringtoets.StabilityPointStructures.Forms/Views/StabilityPointStructuresFailureMechanismResultView.cs (.../StabilityPointStructuresFailureMechanismResultView.cs) (revision bc1babf3ccf2bc4e1fed91210f2cc5d2b7dea774) +++ Ringtoets/StabilityPointStructures/src/Ringtoets.StabilityPointStructures.Forms/Views/StabilityPointStructuresFailureMechanismResultView.cs (.../StabilityPointStructuresFailureMechanismResultView.cs) (revision c47cc3d2e42f1cb69ccf6e47ee0922f05dfd68dd) @@ -143,8 +143,7 @@ { if (eventArgs.ColumnIndex > SimpleAssessmentColumnIndex) { - SimpleAssessmentResultValidityOnlyType simpleAssessmentResult = - ((StabilityPointStructuresFailureMechanismSectionResultRow) GetDataAtRow(eventArgs.RowIndex)).SimpleAssessmentResult; + SimpleAssessmentResultValidityOnlyType simpleAssessmentResult = GetDataAtRow(eventArgs.RowIndex).SimpleAssessmentResult; if (FailureMechanismResultViewHelper.SimpleAssessmentIsSufficient(simpleAssessmentResult)) { DataGridViewControl.DisableCell(eventArgs.RowIndex, eventArgs.ColumnIndex); @@ -163,7 +162,7 @@ return; } - var resultRow = (StabilityPointStructuresFailureMechanismSectionResultRow) GetDataAtRow(e.RowIndex); + StabilityPointStructuresFailureMechanismSectionResultRow resultRow = GetDataAtRow(e.RowIndex); DataGridViewCell currentDataGridViewCell = DataGridViewControl.GetCell(e.RowIndex, e.ColumnIndex); StructuresCalculation normativeCalculation = resultRow.GetSectionResultCalculation(); Index: Ringtoets/StabilityStoneCover/src/Ringtoets.StabilityStoneCover.Forms/Views/StabilityStoneCoverResultView.cs =================================================================== diff -u -rbc1babf3ccf2bc4e1fed91210f2cc5d2b7dea774 -rc47cc3d2e42f1cb69ccf6e47ee0922f05dfd68dd --- Ringtoets/StabilityStoneCover/src/Ringtoets.StabilityStoneCover.Forms/Views/StabilityStoneCoverResultView.cs (.../StabilityStoneCoverResultView.cs) (revision bc1babf3ccf2bc4e1fed91210f2cc5d2b7dea774) +++ Ringtoets/StabilityStoneCover/src/Ringtoets.StabilityStoneCover.Forms/Views/StabilityStoneCoverResultView.cs (.../StabilityStoneCoverResultView.cs) (revision c47cc3d2e42f1cb69ccf6e47ee0922f05dfd68dd) @@ -104,8 +104,7 @@ { if (eventArgs.ColumnIndex > 1) { - SimpleAssessmentResultValidityOnlyType simpleAssessmentResult = - ((StabilityStoneCoverSectionResultRow) GetDataAtRow(eventArgs.RowIndex)).SimpleAssessmentResult; + SimpleAssessmentResultValidityOnlyType simpleAssessmentResult = GetDataAtRow(eventArgs.RowIndex).SimpleAssessmentResult; if (FailureMechanismResultViewHelper.SimpleAssessmentIsSufficient(simpleAssessmentResult)) { DataGridViewControl.DisableCell(eventArgs.RowIndex, eventArgs.ColumnIndex); Index: Ringtoets/WaveImpactAsphaltCover/src/Ringtoets.WaveImpactAsphaltCover.Forms/Views/WaveImpactAsphaltCoverFailureMechanismResultView.cs =================================================================== diff -u -rbc1babf3ccf2bc4e1fed91210f2cc5d2b7dea774 -rc47cc3d2e42f1cb69ccf6e47ee0922f05dfd68dd --- Ringtoets/WaveImpactAsphaltCover/src/Ringtoets.WaveImpactAsphaltCover.Forms/Views/WaveImpactAsphaltCoverFailureMechanismResultView.cs (.../WaveImpactAsphaltCoverFailureMechanismResultView.cs) (revision bc1babf3ccf2bc4e1fed91210f2cc5d2b7dea774) +++ Ringtoets/WaveImpactAsphaltCover/src/Ringtoets.WaveImpactAsphaltCover.Forms/Views/WaveImpactAsphaltCoverFailureMechanismResultView.cs (.../WaveImpactAsphaltCoverFailureMechanismResultView.cs) (revision c47cc3d2e42f1cb69ccf6e47ee0922f05dfd68dd) @@ -105,8 +105,7 @@ { if (eventArgs.ColumnIndex > SimpleAssessmentColumnIndex) { - SimpleAssessmentResultType simpleAssessmentResult = - ((WaveImpactAsphaltCoverFailureMechanismSectionResultRow) GetDataAtRow(eventArgs.RowIndex)).SimpleAssessmentResult; + SimpleAssessmentResultType simpleAssessmentResult = GetDataAtRow(eventArgs.RowIndex).SimpleAssessmentResult; if (FailureMechanismResultViewHelper.SimpleAssessmentIsSufficient(simpleAssessmentResult)) { DataGridViewControl.DisableCell(eventArgs.RowIndex, eventArgs.ColumnIndex);