Index: Ringtoets/Common/src/Ringtoets.Common.Forms/Builders/FailureMechanismSectionResultColumnBuilder.cs
===================================================================
diff -u -r712c1aad8e5486980f259491130e4ae07ea48149 -r10da55f5cb8bf1b8a8309e43f923072a29db254d
--- Ringtoets/Common/src/Ringtoets.Common.Forms/Builders/FailureMechanismSectionResultColumnBuilder.cs (.../FailureMechanismSectionResultColumnBuilder.cs) (revision 712c1aad8e5486980f259491130e4ae07ea48149)
+++ Ringtoets/Common/src/Ringtoets.Common.Forms/Builders/FailureMechanismSectionResultColumnBuilder.cs (.../FailureMechanismSectionResultColumnBuilder.cs) (revision 10da55f5cb8bf1b8a8309e43f923072a29db254d)
@@ -100,6 +100,35 @@
///
/// Adds a column to the showing a
+ /// .
+ ///
+ /// The to add the column to.
+ /// The data property name of the column.
+ /// Thrown when any parameter is null.
+ public static void AddSimpleAssessmentResultValidityOnlyColumn(DataGridViewControl dataGridViewControl, string dataPropertyName)
+ {
+ if (dataGridViewControl == null)
+ {
+ throw new ArgumentNullException(nameof(dataGridViewControl));
+ }
+
+ if (dataPropertyName == null)
+ {
+ throw new ArgumentNullException(nameof(dataPropertyName));
+ }
+
+ IEnumerable> dataSource = CreateEnumDisplayWrappers();
+
+ dataGridViewControl.AddComboBoxColumn(
+ dataPropertyName,
+ Resources.FailureMechanismResultView_SimpleAssessmentResult_DisplayName,
+ dataSource,
+ nameof(EnumDisplayWrapper.Value),
+ nameof(EnumDisplayWrapper.DisplayName));
+ }
+
+ ///
+ /// Adds a column to the showing a
/// .
///
/// The to add the column to.
@@ -182,6 +211,36 @@
}
///
+ /// Adds a column to the showing a
+ /// .
+ ///
+ /// The to add the column to.
+ /// The data property name of the column.
+ /// Thrown when any parameter is null.
+ public static void AddTailorMadeAssessmentProbabilityCalculationResultColumn(DataGridViewControl dataGridViewControl, string dataPropertyName)
+ {
+ if (dataGridViewControl == null)
+ {
+ throw new ArgumentNullException(nameof(dataGridViewControl));
+ }
+
+ if (dataPropertyName == null)
+ {
+ throw new ArgumentNullException(nameof(dataPropertyName));
+ }
+
+ IEnumerable> dataSource =
+ CreateEnumDisplayWrappers();
+
+ dataGridViewControl.AddComboBoxColumn(
+ dataPropertyName,
+ Resources.FailureMechanismResultView_TailorMadeAssessmentResult_DisplayName,
+ dataSource,
+ nameof(EnumDisplayWrapper.Value),
+ nameof(EnumDisplayWrapper.DisplayName));
+ }
+
+ ///
/// Adds a column to the showing the tailor made
/// assessment probability.
///
@@ -356,12 +415,36 @@
dataGridViewControl.AddComboBoxColumn(
dataPropertyName,
- Resources.FailureMechanismResultView_ManualAssemblyCategoryGroup_DisplayName,
+ Resources.FailureMechanismResultView_ManualAssembly_DisplayName,
dataSource,
nameof(EnumDisplayWrapper.Value),
nameof(EnumDisplayWrapper.DisplayName));
}
+ ///
+ /// Adds a column to the showing the
+ /// overridden combined assembly probability.
+ ///
+ /// The to add the column to.
+ /// The data property name of the column.
+ /// Thrown when any parameter is null.
+ public static void AddManualAssemblyProbabilityColumn(DataGridViewControl dataGridViewControl, string dataPropertyName)
+ {
+ if (dataGridViewControl == null)
+ {
+ throw new ArgumentNullException(nameof(dataGridViewControl));
+ }
+
+ if (dataPropertyName == null)
+ {
+ throw new ArgumentNullException(nameof(dataPropertyName));
+ }
+
+ dataGridViewControl.AddTextBoxColumn(
+ dataPropertyName,
+ Resources.FailureMechanismResultView_ManualAssembly_DisplayName);
+ }
+
#endregion
}
}
\ No newline at end of file