Index: Ringtoets/Integration/src/Ringtoets.Integration.Forms/Views/AssemblyResultTotalView.cs
===================================================================
diff -u -r286dd94855581a1510e46fe49e21dce41234feb7 -r81017f9028c1527df883b1b51cc76283121ad481
--- Ringtoets/Integration/src/Ringtoets.Integration.Forms/Views/AssemblyResultTotalView.cs (.../AssemblyResultTotalView.cs) (revision 286dd94855581a1510e46fe49e21dce41234feb7)
+++ Ringtoets/Integration/src/Ringtoets.Integration.Forms/Views/AssemblyResultTotalView.cs (.../AssemblyResultTotalView.cs) (revision 81017f9028c1527df883b1b51cc76283121ad481)
@@ -21,7 +21,6 @@
using System;
using System.Collections.Generic;
-using System.Linq;
using System.Windows.Forms;
using Core.Common.Controls.Views;
using Ringtoets.Integration.Data;
@@ -56,33 +55,52 @@
SetData();
}
- public object Data { get; set; }
-
///
/// Gets the the view belongs to.
///
public AssessmentSection AssessmentSection { get; }
+ public object Data { get; set; }
+
private void InitializeDataGridView()
{
dataGridViewControl.AddTextBoxColumn(nameof(FailureMechanismAssemblyResultRow.Name),
CommonGuiResources.FailureMechanismContributionView_GridColumn_Assessment,
true);
- dataGridViewControl.AddTextBoxColumn(nameof(FailureMechanismAssemblyResultRow.Code),
- RingtoetsCommonFormsResources.FailureMechanism_Code_DisplayName,
+ dataGridViewControl.AddTextBoxColumn(nameof(FailureMechanismAssemblyResultRow.Code),
+ RingtoetsCommonFormsResources.FailureMechanism_Code_DisplayName,
true);
- dataGridViewControl.AddTextBoxColumn(nameof(FailureMechanismAssemblyResultRow.Group),
- RingtoetsCommonFormsResources.FailureMechanism_Group_DisplayName,
+ dataGridViewControl.AddTextBoxColumn(nameof(FailureMechanismAssemblyResultRow.Group),
+ RingtoetsCommonFormsResources.FailureMechanism_Group_DisplayName,
true);
}
private void SetData()
{
- IEnumerable rows = AssessmentSection.GetFailureMechanisms()
- .Select(fm => new FailureMechanismAssemblyResultRow(fm))
- .ToList();
+ var rows = new List
+ {
+ new FailureMechanismAssemblyResultRow(AssessmentSection.Piping),
+ new FailureMechanismAssemblyResultRow(AssessmentSection.GrassCoverErosionInwards),
+ new FailureMechanismAssemblyResultRow(AssessmentSection.MacroStabilityInwards),
+ new FailureMechanismAssemblyResultRow(AssessmentSection.MacroStabilityOutwards),
+ new FailureMechanismAssemblyResultRow(AssessmentSection.Microstability),
+ new FailureMechanismAssemblyResultRow(AssessmentSection.StabilityStoneCover),
+ new FailureMechanismAssemblyResultRow(AssessmentSection.WaveImpactAsphaltCover),
+ new FailureMechanismAssemblyResultRow(AssessmentSection.WaterPressureAsphaltCover),
+ new FailureMechanismAssemblyResultRow(AssessmentSection.GrassCoverErosionOutwards),
+ new FailureMechanismAssemblyResultRow(AssessmentSection.GrassCoverSlipOffOutwards),
+ new FailureMechanismAssemblyResultRow(AssessmentSection.GrassCoverSlipOffInwards),
+ new FailureMechanismAssemblyResultRow(AssessmentSection.HeightStructures),
+ new FailureMechanismAssemblyResultRow(AssessmentSection.ClosingStructures),
+ new FailureMechanismAssemblyResultRow(AssessmentSection.PipingStructure),
+ new FailureMechanismAssemblyResultRow(AssessmentSection.StabilityPointStructures),
+ new FailureMechanismAssemblyResultRow(AssessmentSection.StrengthStabilityLengthwiseConstruction),
+ new FailureMechanismAssemblyResultRow(AssessmentSection.DuneErosion),
+ new FailureMechanismAssemblyResultRow(AssessmentSection.TechnicalInnovation)
+ };
+
dataGridViewControl.SetDataSource(rows);
}
}