Index: Ringtoets/Common/src/Ringtoets.Common.Forms/Ringtoets.Common.Forms.csproj
===================================================================
diff -u -rb29487c198d87b176783f2396c2b59cd76b9f246 -rd941c131f9c9ef14eaf09b9865b6c072e1a7c3c3
--- Ringtoets/Common/src/Ringtoets.Common.Forms/Ringtoets.Common.Forms.csproj (.../Ringtoets.Common.Forms.csproj) (revision b29487c198d87b176783f2396c2b59cd76b9f246)
+++ Ringtoets/Common/src/Ringtoets.Common.Forms/Ringtoets.Common.Forms.csproj (.../Ringtoets.Common.Forms.csproj) (revision d941c131f9c9ef14eaf09b9865b6c072e1a7c3c3)
@@ -346,6 +346,7 @@
{420ED9C3-0C33-47EA-B893-121A9C0DB4F1}
Ringtoets.AssemblyTool.Data
+ False
{888d4097-8bc2-4703-9fb1-8744c94d525e}
Index: Ringtoets/Common/test/Ringtoets.Common.Data.TestUtil/FailureMechanismSectionResultTestFactory.cs
===================================================================
diff -u -rc4d1fab26e8a8a24845606047d51628f6bf4fe5e -rd941c131f9c9ef14eaf09b9865b6c072e1a7c3c3
--- Ringtoets/Common/test/Ringtoets.Common.Data.TestUtil/FailureMechanismSectionResultTestFactory.cs (.../FailureMechanismSectionResultTestFactory.cs) (revision c4d1fab26e8a8a24845606047d51628f6bf4fe5e)
+++ Ringtoets/Common/test/Ringtoets.Common.Data.TestUtil/FailureMechanismSectionResultTestFactory.cs (.../FailureMechanismSectionResultTestFactory.cs) (revision d941c131f9c9ef14eaf09b9865b6c072e1a7c3c3)
@@ -19,6 +19,7 @@
// Stichting Deltares and remain full property of Stichting Deltares at all times.
// All rights reserved.
+using System;
using Ringtoets.Common.Data.FailureMechanism;
namespace Ringtoets.Common.Data.TestUtil
@@ -34,6 +35,8 @@
///
/// The name of the section.
/// A valid .
+ /// Thrown when
+ /// is null.
public static TestFailureMechanismSectionResult CreateFailureMechanismSectionResult(string name = "test")
{
return new TestFailureMechanismSectionResult(FailureMechanismSectionTestFactory.CreateFailureMechanismSection(name));
Index: Ringtoets/Common/test/Ringtoets.Common.Data.TestUtil/FailureMechanismSectionTestFactory.cs
===================================================================
diff -u -rc4d1fab26e8a8a24845606047d51628f6bf4fe5e -rd941c131f9c9ef14eaf09b9865b6c072e1a7c3c3
--- Ringtoets/Common/test/Ringtoets.Common.Data.TestUtil/FailureMechanismSectionTestFactory.cs (.../FailureMechanismSectionTestFactory.cs) (revision c4d1fab26e8a8a24845606047d51628f6bf4fe5e)
+++ Ringtoets/Common/test/Ringtoets.Common.Data.TestUtil/FailureMechanismSectionTestFactory.cs (.../FailureMechanismSectionTestFactory.cs) (revision d941c131f9c9ef14eaf09b9865b6c072e1a7c3c3)
@@ -37,6 +37,8 @@
///
/// The name of the section.
/// A valid .
+ /// Thrown when
+ /// is null.
public static FailureMechanismSection CreateFailureMechanismSection(string name = "test")
{
return CreateFailureMechanismSection(name, new[]
Index: Ringtoets/Integration/src/Ringtoets.Integration.Data/StandAlone/AssemblyFactories/MacroStabilityOutwardsFailureMechanismSectionResultAssemblyFactory.cs
===================================================================
diff -u -r675f7c90056894a60a20233cd9f146a0f84ceb01 -rd941c131f9c9ef14eaf09b9865b6c072e1a7c3c3
--- Ringtoets/Integration/src/Ringtoets.Integration.Data/StandAlone/AssemblyFactories/MacroStabilityOutwardsFailureMechanismSectionResultAssemblyFactory.cs (.../MacroStabilityOutwardsFailureMechanismSectionResultAssemblyFactory.cs) (revision 675f7c90056894a60a20233cd9f146a0f84ceb01)
+++ Ringtoets/Integration/src/Ringtoets.Integration.Data/StandAlone/AssemblyFactories/MacroStabilityOutwardsFailureMechanismSectionResultAssemblyFactory.cs (.../MacroStabilityOutwardsFailureMechanismSectionResultAssemblyFactory.cs) (revision d941c131f9c9ef14eaf09b9865b6c072e1a7c3c3)
@@ -46,7 +46,7 @@
/// A based on the .
/// Thrown when
/// is null.
- /// Thrown when the
+ /// Thrown when the
/// could not be created.
public static FailureMechanismSectionAssemblyCategoryGroup AssembleSimpleAssessment(
MacroStabilityOutwardsFailureMechanismSectionResult failureMechanismSectionResult)
@@ -79,7 +79,7 @@
/// The belonging to this section.
/// A .
/// Thrown when any parameter is null.
- /// Thrown when the
+ /// Thrown when the
/// could not be created.
public static FailureMechanismSectionAssemblyCategoryGroup AssembleDetailedAssembly(
MacroStabilityOutwardsFailureMechanismSectionResult failureMechanismSectionResult,
@@ -135,7 +135,7 @@
/// The belonging to this section.
/// A .
/// Thrown when any parameter is null.
- /// Thrown when the
+ /// Thrown when the
/// could not be created.
public static FailureMechanismSectionAssemblyCategoryGroup AssembleTailorMadeAssembly(
MacroStabilityOutwardsFailureMechanismSectionResult failureMechanismSectionResult,
@@ -191,7 +191,7 @@
/// The belonging to this section.
/// A .
/// Thrown when any parameter is null.
- /// Thrown when the
+ /// Thrown when the
/// could not be created.
public static FailureMechanismSectionAssemblyCategoryGroup AssembleCombinedAssembly(
MacroStabilityOutwardsFailureMechanismSectionResult failureMechanismSectionResult,
Index: Ringtoets/Integration/src/Ringtoets.Integration.Data/StandAlone/SectionResults/MacroStabilityOutwardsFailureMechanismSectionResult.cs
===================================================================
diff -u -r712c1aad8e5486980f259491130e4ae07ea48149 -rd941c131f9c9ef14eaf09b9865b6c072e1a7c3c3
--- Ringtoets/Integration/src/Ringtoets.Integration.Data/StandAlone/SectionResults/MacroStabilityOutwardsFailureMechanismSectionResult.cs (.../MacroStabilityOutwardsFailureMechanismSectionResult.cs) (revision 712c1aad8e5486980f259491130e4ae07ea48149)
+++ Ringtoets/Integration/src/Ringtoets.Integration.Data/StandAlone/SectionResults/MacroStabilityOutwardsFailureMechanismSectionResult.cs (.../MacroStabilityOutwardsFailureMechanismSectionResult.cs) (revision d941c131f9c9ef14eaf09b9865b6c072e1a7c3c3)
@@ -20,7 +20,6 @@
// All rights reserved.
using System;
-using Core.Common.Base.Data;
using Ringtoets.AssemblyTool.Data;
using Ringtoets.Common.Data.FailureMechanism;
using Ringtoets.Common.Data.Probability;
Index: Ringtoets/Integration/src/Ringtoets.Integration.Forms/Views/SectionResultRows/MacroStabilityOutwardsSectionResultRow.cs
===================================================================
diff -u -r405b3462fe3bd495b4820bf225a68a4188c9c112 -rd941c131f9c9ef14eaf09b9865b6c072e1a7c3c3
--- Ringtoets/Integration/src/Ringtoets.Integration.Forms/Views/SectionResultRows/MacroStabilityOutwardsSectionResultRow.cs (.../MacroStabilityOutwardsSectionResultRow.cs) (revision 405b3462fe3bd495b4820bf225a68a4188c9c112)
+++ Ringtoets/Integration/src/Ringtoets.Integration.Forms/Views/SectionResultRows/MacroStabilityOutwardsSectionResultRow.cs (.../MacroStabilityOutwardsSectionResultRow.cs) (revision d941c131f9c9ef14eaf09b9865b6c072e1a7c3c3)
@@ -20,7 +20,6 @@
// All rights reserved.
using System;
-using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using Core.Common.Controls.DataGrid;
@@ -66,10 +65,12 @@
/// The property values required to create an instance of
/// .
/// Thrown when any parameter is null.
- public MacroStabilityOutwardsSectionResultRow(MacroStabilityOutwardsFailureMechanismSectionResult sectionResult,
- MacroStabilityOutwardsFailureMechanism failureMechanism,
- IAssessmentSection assessmentSection,
- ConstructionProperties constructionProperties)
+ /// Thrown when
+ /// is a valid value, but unsupported.
+ internal MacroStabilityOutwardsSectionResultRow(MacroStabilityOutwardsFailureMechanismSectionResult sectionResult,
+ MacroStabilityOutwardsFailureMechanism failureMechanism,
+ IAssessmentSection assessmentSection,
+ ConstructionProperties constructionProperties)
: base(sectionResult)
{
if (failureMechanism == null)
@@ -109,6 +110,8 @@
///
/// Gets or sets the value representing the simple assessment result.
///
+ /// Thrown when
+ /// is a valid value, but unsupported.
public SimpleAssessmentResultType SimpleAssessmentResult
{
get
@@ -126,6 +129,8 @@
///
/// Gets or sets the value representing the detailed assessment result.
///
+ /// Thrown when
+ /// is a valid value, but unsupported.
public DetailedAssessmentResultType DetailedAssessmentResult
{
get
@@ -145,6 +150,8 @@
///
/// Thrown when is
/// not in the range [0,1].
+ /// Thrown when
+ /// is a valid value, but unsupported.
[TypeConverter(typeof(NoProbabilityValueDoubleConverter))]
public double DetailedAssessmentProbability
{
@@ -163,6 +170,8 @@
///
/// Gets or sets the value representing the tailor made assessment result.
///
+ /// Thrown when
+ /// is a valid value, but unsupported.
public TailorMadeAssessmentProbabilityAndDetailedCalculationResultType TailorMadeAssessmentResult
{
get
@@ -182,6 +191,8 @@
///
/// Thrown when is
/// not in the range [0,1].
+ /// Thrown when
+ /// is a valid value, but unsupported.
[TypeConverter(typeof(NoProbabilityValueDoubleConverter))]
public double TailorMadeAssessmentProbability
{
@@ -220,6 +231,8 @@
///
/// Gets or sets the indicator whether the combined assembly should be overwritten by .
///
+ /// Thrown when
+ /// is a valid value, but unsupported.
public bool UseManualAssemblyCategoryGroup
{
get
@@ -251,6 +264,15 @@
}
}
+ ///
+ /// Thrown when
+ /// is a valid value, but unsupported.
+ public override void Update()
+ {
+ UpdateDerivedData();
+ UpdateColumnStateDefinitionStates();
+ }
+
private void CreateColumnStateDefinitions()
{
ColumnStateDefinitions.Add(simpleAssessmentResultIndex, new DataGridViewColumnStateDefinition());
@@ -265,12 +287,6 @@
ColumnStateDefinitions.Add(manualAssemblyCategoryGroupIndex, new DataGridViewColumnStateDefinition());
}
- private void Update()
- {
- UpdateDerivedData();
- UpdateColumnDefinitionStates();
- }
-
private void UpdateDerivedData()
{
ResetErrorTexts();
@@ -349,7 +365,12 @@
}
}
- private void UpdateColumnDefinitionStates()
+ ///
+ /// Updates the column state definitions.
+ ///
+ /// Thrown when
+ /// is a valid value, but unsupported.
+ private void UpdateColumnStateDefinitionStates()
{
bool simpleAssessmentSufficient = GetSimpleAssessmentSufficient();
@@ -377,13 +398,28 @@
SetColumnState(manualAssemblyCategoryGroupIndex, !UseManualAssemblyCategoryGroup);
}
+ ///
+ /// Sets the style of the column state definition on the given .
+ ///
+ /// The index of the column state definition.
+ /// The category group to get the color for.
+ /// A .
+ /// Thrown when
+ /// is a valid value, but unsupported.
private void SetAssemblyCategoryGroupStyle(int index, FailureMechanismSectionAssemblyCategoryGroup assemblyCategoryGroup)
{
ColumnStateDefinitions[index].Style = new CellStyle(
Color.FromKnownColor(KnownColor.ControlText),
GetCategoryGroupColor(assemblyCategoryGroup));
}
+ ///
+ /// Gets the color based on the .
+ ///
+ /// The category group to get the color for.
+ /// A .
+ /// Thrown when
+ /// is a valid value, but unsupported.
private static Color GetCategoryGroupColor(FailureMechanismSectionAssemblyCategoryGroup categoryGroup)
{
switch (categoryGroup)
@@ -454,52 +490,52 @@
public class ConstructionProperties
{
///
- /// Gets or sets the simple assessment result index.
+ /// Sets the simple assessment result index.
///
public int SimpleAssessmentResultIndex { internal get; set; }
///
- /// Gets or sets the detailed assessment result index.
+ /// Sets the detailed assessment result index.
///
public int DetailedAssessmentResultIndex { internal get; set; }
///
- /// Gets or sets the detailed assessment probability index.
+ /// Sets the detailed assessment probability index.
///
public int DetailedAssessmentProbabilityIndex { internal get; set; }
///
- /// Gets or sets the tailor made assessment result index.
+ /// Sets the tailor made assessment result index.
///
public int TailorMadeAssessmentResultIndex { internal get; set; }
///
- /// Gets or sets the tailor made assessment probability index.
+ /// Sets the tailor made assessment probability index.
///
public int TailorMadeAssessmentProbabilityIndex { internal get; set; }
///
- /// Gets or sets the simple assembly category group index.
+ /// Sets the simple assembly category group index.
///
public int SimpleAssemblyCategoryGroupIndex { internal get; set; }
///
- /// Gets or sets the detailed assembly category group index.
+ /// Sets the detailed assembly category group index.
///
public int DetailedAssemblyCategoryGroupIndex { internal get; set; }
///
- /// Gets or sets the tailor made assembly category group index.
+ /// Sets the tailor made assembly category group index.
///
public int TailorMadeAssemblyCategoryGroupIndex { internal get; set; }
///
- /// Gets or sets the combined assembly category group index.
+ /// Sets the combined assembly category group index.
///
public int CombinedAssemblyCategoryGroupIndex { internal get; set; }
///
- /// Gets or sets the manual assembly category group index.
+ /// Sets the manual assembly category group index.
///
public int ManualAssemblyCategoryGroupIndex { internal get; set; }
}