Index: Riskeer/Common/src/Riskeer.Common.Forms/Views/AdoptableWithProfileProbabilityFailureMechanismSectionResultRow.cs =================================================================== diff -u -raa51178484bfa0afd5c9d133e38b2d84f935ec6f -r34aaff9e2a60c7fb76b5e6be3ff713fa252ccc39 --- Riskeer/Common/src/Riskeer.Common.Forms/Views/AdoptableWithProfileProbabilityFailureMechanismSectionResultRow.cs (.../AdoptableWithProfileProbabilityFailureMechanismSectionResultRow.cs) (revision aa51178484bfa0afd5c9d133e38b2d84f935ec6f) +++ Riskeer/Common/src/Riskeer.Common.Forms/Views/AdoptableWithProfileProbabilityFailureMechanismSectionResultRow.cs (.../AdoptableWithProfileProbabilityFailureMechanismSectionResultRow.cs) (revision 34aaff9e2a60c7fb76b5e6be3ff713fa252ccc39) @@ -51,7 +51,6 @@ private readonly IFailureMechanismSectionResultCalculateProbabilityStrategy calculateProbabilityStrategy; private readonly IFailureMechanismSectionResultRowWithCalculatedProbabilityErrorProvider failureMechanismSectionResultRowErrorProvider; private readonly Func performAssemblyFunc; - private readonly Func getApplyLengthEffectInSectionFunc; /// /// Creates a new instance of . @@ -62,15 +61,13 @@ /// The error provider to use for /// the failure mechanism section result row. /// Function to perform the assembly. - /// Function to get the apply length effect in section indicator. /// The property values required to create an instance of /// . /// Throw when any parameter is null. public AdoptableWithProfileProbabilityFailureMechanismSectionResultRow(AdoptableWithProfileProbabilityFailureMechanismSectionResult sectionResult, IFailureMechanismSectionResultCalculateProbabilityStrategy calculateProbabilityStrategy, IFailureMechanismSectionResultRowWithCalculatedProbabilityErrorProvider failureMechanismSectionResultRowErrorProvider, Func performAssemblyFunc, - Func getApplyLengthEffectInSectionFunc, ConstructionProperties constructionProperties) : base(sectionResult) { @@ -89,11 +86,6 @@ throw new ArgumentNullException(nameof(performAssemblyFunc)); } - if (getApplyLengthEffectInSectionFunc == null) - { - throw new ArgumentNullException(nameof(getApplyLengthEffectInSectionFunc)); - } - if (constructionProperties == null) { throw new ArgumentNullException(nameof(constructionProperties)); @@ -102,7 +94,6 @@ this.calculateProbabilityStrategy = calculateProbabilityStrategy; this.failureMechanismSectionResultRowErrorProvider = failureMechanismSectionResultRowErrorProvider; this.performAssemblyFunc = performAssemblyFunc; - this.getApplyLengthEffectInSectionFunc = getApplyLengthEffectInSectionFunc; initialFailureMechanismResultTypeIndex = constructionProperties.InitialFailureMechanismResultTypeIndex; initialFailureMechanismResultSectionProbabilityIndex = constructionProperties.InitialFailureMechanismResultSectionProbabilityIndex; @@ -193,9 +184,7 @@ [TypeConverter(typeof(NoProbabilityValueDoubleConverter))] public object RefinedSectionProbability { - get => getApplyLengthEffectInSectionFunc() && ProbabilityRefinementType == ProbabilityRefinementType.Profile - ? (object) CommonFormsResources.FailureMechanismSectionResultRow_Derived_DisplayName - : SectionResult.RefinedSectionProbability; + get => SectionResult.RefinedSectionProbability; set { SectionResult.RefinedSectionProbability = (double) value; @@ -320,11 +309,6 @@ { ColumnStateHelper.DisableColumn(ColumnStateDefinitions[refinedSectionProbabilityIndex]); } - else - { - bool applyLengthEffectInSection = getApplyLengthEffectInSectionFunc(); - ColumnStateHelper.EnableColumn(ColumnStateDefinitions[refinedSectionProbabilityIndex], applyLengthEffectInSection && ProbabilityRefinementType == ProbabilityRefinementType.Profile); - } FailureMechanismSectionResultRowHelper.SetAssemblyGroupStyle(ColumnStateDefinitions[assemblyGroupIndex], AssemblyResult.FailureMechanismSectionAssemblyGroup); } Index: Riskeer/Common/test/Riskeer.Common.Forms.Test/Views/AdoptableWithProfileProbabilityFailureMechanismSectionResultRowTest.cs =================================================================== diff -u -r82618482c5d38868f1d2eea8c7a1d01a999e5ca9 -r34aaff9e2a60c7fb76b5e6be3ff713fa252ccc39 --- Riskeer/Common/test/Riskeer.Common.Forms.Test/Views/AdoptableWithProfileProbabilityFailureMechanismSectionResultRowTest.cs (.../AdoptableWithProfileProbabilityFailureMechanismSectionResultRowTest.cs) (revision 82618482c5d38868f1d2eea8c7a1d01a999e5ca9) +++ Riskeer/Common/test/Riskeer.Common.Forms.Test/Views/AdoptableWithProfileProbabilityFailureMechanismSectionResultRowTest.cs (.../AdoptableWithProfileProbabilityFailureMechanismSectionResultRowTest.cs) (revision 34aaff9e2a60c7fb76b5e6be3ff713fa252ccc39) @@ -72,7 +72,7 @@ var result = new AdoptableWithProfileProbabilityFailureMechanismSectionResult(section); // Call - void Call() => new AdoptableWithProfileProbabilityFailureMechanismSectionResultRow(result, null, errorProvider, performAssemblyFunc, () => true, ConstructionProperties); + void Call() => new AdoptableWithProfileProbabilityFailureMechanismSectionResultRow(result, null, errorProvider, performAssemblyFunc, ConstructionProperties); // Assert var exception = Assert.Throws(Call); @@ -94,7 +94,7 @@ var result = new AdoptableWithProfileProbabilityFailureMechanismSectionResult(section); // Call - void Call() => new AdoptableWithProfileProbabilityFailureMechanismSectionResultRow(result, calculateStrategy, null, performAssemblyFunc, () => true, ConstructionProperties); + void Call() => new AdoptableWithProfileProbabilityFailureMechanismSectionResultRow(result, calculateStrategy, null, performAssemblyFunc, ConstructionProperties); // Assert var exception = Assert.Throws(Call); @@ -115,7 +115,7 @@ var result = new AdoptableWithProfileProbabilityFailureMechanismSectionResult(section); // Call - void Call() => new AdoptableWithProfileProbabilityFailureMechanismSectionResultRow(result, calculateStrategy, errorProvider, null, () => true, ConstructionProperties); + void Call() => new AdoptableWithProfileProbabilityFailureMechanismSectionResultRow(result, calculateStrategy, errorProvider, null, ConstructionProperties); // Assert var exception = Assert.Throws(Call); @@ -138,7 +138,7 @@ var result = new AdoptableWithProfileProbabilityFailureMechanismSectionResult(section); // Call - void Call() => new AdoptableWithProfileProbabilityFailureMechanismSectionResultRow(result, calculateStrategy, errorProvider, performAssemblyFunc, () => true, null); + void Call() => new AdoptableWithProfileProbabilityFailureMechanismSectionResultRow(result, calculateStrategy, errorProvider, performAssemblyFunc, null); // Assert var exception = Assert.Throws(Call); @@ -147,29 +147,6 @@ } [Test] - public void Constructor_GetApplyLengthEffectInSectionFuncNull_ThrowsArgumentNullException() - { - // Setup - var mocks = new MockRepository(); - var calculateStrategy = mocks.Stub(); - var errorProvider = mocks.Stub(); - mocks.ReplayAll(); - - Func performAssemblyFunc = FailureMechanismSectionAssemblyResultWrapperTestFactory.Create; - - FailureMechanismSection section = FailureMechanismSectionTestFactory.CreateFailureMechanismSection(); - var result = new AdoptableWithProfileProbabilityFailureMechanismSectionResult(section); - - // Call - void Call() => new AdoptableWithProfileProbabilityFailureMechanismSectionResultRow(result, calculateStrategy, errorProvider, performAssemblyFunc, null, ConstructionProperties); - - // Assert - var exception = Assert.Throws(Call); - Assert.AreEqual("getApplyLengthEffectInSectionFunc", exception.ParamName); - mocks.VerifyAll(); - } - - [Test] public void Constructor_ExpectedValues() { // Setup @@ -190,7 +167,7 @@ }; // Call - var row = new AdoptableWithProfileProbabilityFailureMechanismSectionResultRow(result, calculateStrategy, errorProvider, performAssemblyFunc, () => true, ConstructionProperties); + var row = new AdoptableWithProfileProbabilityFailureMechanismSectionResultRow(result, calculateStrategy, errorProvider, performAssemblyFunc, ConstructionProperties); // Assert Assert.IsInstanceOf>(row); @@ -240,7 +217,7 @@ var result = new AdoptableWithProfileProbabilityFailureMechanismSectionResult(section); Func performAssemblyFunc = FailureMechanismSectionAssemblyResultWrapperTestFactory.Create; - var row = new AdoptableWithProfileProbabilityFailureMechanismSectionResultRow(result, calculateStrategy, errorProvider, performAssemblyFunc, () => true, ConstructionProperties); + var row = new AdoptableWithProfileProbabilityFailureMechanismSectionResultRow(result, calculateStrategy, errorProvider, performAssemblyFunc, ConstructionProperties); // Precondition Assert.AreEqual(sectionProbability, row.InitialFailureMechanismResultSectionProbability); @@ -255,10 +232,10 @@ } [Test] - [TestCase(ProbabilityRefinementType.Profile, double.NaN, "")] - [TestCase(ProbabilityRefinementType.Section, "", double.NaN)] + [TestCase(ProbabilityRefinementType.Profile, double.NaN)] + [TestCase(ProbabilityRefinementType.Section, double.NaN)] public void GivenRowWithApplyLengthEffectInSectionTrueAndProbabilityRefinementType_WhenValueChanged_ThenInitialProbabilitiesChanged( - ProbabilityRefinementType newValue, object newProfileValue, object newSectionValue) + ProbabilityRefinementType newValue, double newSectionValue) { // Given var mocks = new MockRepository(); @@ -273,7 +250,7 @@ }; Func performAssemblyFunc = FailureMechanismSectionAssemblyResultWrapperTestFactory.Create; - var row = new AdoptableWithProfileProbabilityFailureMechanismSectionResultRow(result, calculateStrategy, errorProvider, performAssemblyFunc, () => true, ConstructionProperties); + var row = new AdoptableWithProfileProbabilityFailureMechanismSectionResultRow(result, calculateStrategy, errorProvider, performAssemblyFunc, ConstructionProperties); // Precondition Assert.AreEqual(result.RefinedSectionProbability, row.RefinedSectionProbability); @@ -307,7 +284,7 @@ Func performAssemblyFunc = FailureMechanismSectionAssemblyResultWrapperTestFactory.Create; var row = new AdoptableWithProfileProbabilityFailureMechanismSectionResultRow( - result, calculateStrategy, errorProvider, performAssemblyFunc, () => false, ConstructionProperties); + result, calculateStrategy, errorProvider, performAssemblyFunc, ConstructionProperties); // Precondition Assert.AreEqual(result.RefinedSectionProbability, row.RefinedSectionProbability); @@ -332,7 +309,7 @@ errorProvider.Expect(ep => ep.GetCalculatedProbabilityValidationError(null)) .IgnoreArguments() .Return(errorText) - . Repeat.Once(); + .Repeat.Once(); mocks.ReplayAll(); Func performAssemblyFunc = FailureMechanismSectionAssemblyResultWrapperTestFactory.Create; @@ -341,7 +318,7 @@ var result = new AdoptableWithProfileProbabilityFailureMechanismSectionResult(section); // When - var row = new AdoptableWithProfileProbabilityFailureMechanismSectionResultRow(result, calculateStrategy, errorProvider, performAssemblyFunc, () => true, ConstructionProperties); + var row = new AdoptableWithProfileProbabilityFailureMechanismSectionResultRow(result, calculateStrategy, errorProvider, performAssemblyFunc, ConstructionProperties); // Then IDictionary columnStateDefinitions = row.ColumnStateDefinitions; @@ -375,7 +352,7 @@ }; // When - var row = new AdoptableWithProfileProbabilityFailureMechanismSectionResultRow(result, calculateStrategy, errorProvider, performAssemblyFunc, () => true, ConstructionProperties); + var row = new AdoptableWithProfileProbabilityFailureMechanismSectionResultRow(result, calculateStrategy, errorProvider, performAssemblyFunc, ConstructionProperties); // Then IDictionary columnStateDefinitions = row.ColumnStateDefinitions; @@ -410,7 +387,7 @@ }; // When - var row = new AdoptableWithProfileProbabilityFailureMechanismSectionResultRow(result, calculateStrategy, errorProvider, performAssemblyFunc, () => true, ConstructionProperties); + var row = new AdoptableWithProfileProbabilityFailureMechanismSectionResultRow(result, calculateStrategy, errorProvider, performAssemblyFunc, ConstructionProperties); // Then IDictionary columnStateDefinitions = row.ColumnStateDefinitions; @@ -450,7 +427,7 @@ }; // When - var row = new AdoptableWithProfileProbabilityFailureMechanismSectionResultRow(result, calculateStrategy, errorProvider, performAssemblyFunc, () => true, ConstructionProperties); + var row = new AdoptableWithProfileProbabilityFailureMechanismSectionResultRow(result, calculateStrategy, errorProvider, performAssemblyFunc, ConstructionProperties); // Then IDictionary columnStateDefinitions = row.ColumnStateDefinitions; @@ -491,7 +468,7 @@ }; // When - var row = new AdoptableWithProfileProbabilityFailureMechanismSectionResultRow(result, calculateStrategy, errorProvider, performAssemblyFunc, () => true, ConstructionProperties); + var row = new AdoptableWithProfileProbabilityFailureMechanismSectionResultRow(result, calculateStrategy, errorProvider, performAssemblyFunc, ConstructionProperties); // Then IDictionary columnStateDefinitions = row.ColumnStateDefinitions; @@ -531,7 +508,7 @@ }; // When - var row = new AdoptableWithProfileProbabilityFailureMechanismSectionResultRow(result, calculateStrategy, errorProvider, performAssemblyFunc, () => true, ConstructionProperties); + var row = new AdoptableWithProfileProbabilityFailureMechanismSectionResultRow(result, calculateStrategy, errorProvider, performAssemblyFunc, ConstructionProperties); // Then IDictionary columnStateDefinitions = row.ColumnStateDefinitions; @@ -637,7 +614,7 @@ var result = new AdoptableWithProfileProbabilityFailureMechanismSectionResult(section); result.Attach(observer); - var row = new AdoptableWithProfileProbabilityFailureMechanismSectionResultRow(result, calculateStrategy, errorProvider, performAssemblyFunc, () => true, ConstructionProperties); + var row = new AdoptableWithProfileProbabilityFailureMechanismSectionResultRow(result, calculateStrategy, errorProvider, performAssemblyFunc, ConstructionProperties); // Call setPropertyAction(row); @@ -662,7 +639,7 @@ FailureMechanismSection section = FailureMechanismSectionTestFactory.CreateFailureMechanismSection(); var result = new AdoptableWithProfileProbabilityFailureMechanismSectionResult(section); - var row = new AdoptableWithProfileProbabilityFailureMechanismSectionResultRow(result, calculateStrategy, errorProvider, performAssemblyFunc, () => true, ConstructionProperties); + var row = new AdoptableWithProfileProbabilityFailureMechanismSectionResultRow(result, calculateStrategy, errorProvider, performAssemblyFunc, ConstructionProperties); // Call void Call() => setPropertyAction(row); @@ -694,7 +671,7 @@ var result = new AdoptableWithProfileProbabilityFailureMechanismSectionResult(section); // Call - var row = new AdoptableWithProfileProbabilityFailureMechanismSectionResultRow(result, calculateStrategy, errorProvider, performAssemblyFunc, () => true, ConstructionProperties); + var row = new AdoptableWithProfileProbabilityFailureMechanismSectionResultRow(result, calculateStrategy, errorProvider, performAssemblyFunc, ConstructionProperties); // Assert FailureMechanismSectionAssemblyResult assemblyResult = assemblyResultWrapper.AssemblyResult; @@ -730,7 +707,7 @@ FailureMechanismSection section = FailureMechanismSectionTestFactory.CreateFailureMechanismSection(); var result = new AdoptableWithProfileProbabilityFailureMechanismSectionResult(section); - var row = new AdoptableWithProfileProbabilityFailureMechanismSectionResultRow(result, calculateStrategy, errorProvider, performAssemblyFunc, () => true, ConstructionProperties); + var row = new AdoptableWithProfileProbabilityFailureMechanismSectionResultRow(result, calculateStrategy, errorProvider, performAssemblyFunc, ConstructionProperties); // Precondition FailureMechanismSectionAssemblyResult assemblyResult = assemblyResultWrapper.AssemblyResult; @@ -775,7 +752,7 @@ FailureMechanismSection section = FailureMechanismSectionTestFactory.CreateFailureMechanismSection(); var result = new AdoptableWithProfileProbabilityFailureMechanismSectionResult(section); - var row = new AdoptableWithProfileProbabilityFailureMechanismSectionResultRow(result, calculateStrategy, errorProvider, performAssemblyFunc, () => true, ConstructionProperties); + var row = new AdoptableWithProfileProbabilityFailureMechanismSectionResultRow(result, calculateStrategy, errorProvider, performAssemblyFunc, ConstructionProperties); // Precondition IDictionary columnStateDefinitions = row.ColumnStateDefinitions; @@ -817,7 +794,7 @@ FailureMechanismSection section = FailureMechanismSectionTestFactory.CreateFailureMechanismSection(); var result = new AdoptableWithProfileProbabilityFailureMechanismSectionResult(section); - var row = new AdoptableWithProfileProbabilityFailureMechanismSectionResultRow(result, calculateStrategy, errorProvider, performAssemblyFunc, () => true, ConstructionProperties); + var row = new AdoptableWithProfileProbabilityFailureMechanismSectionResultRow(result, calculateStrategy, errorProvider, performAssemblyFunc, ConstructionProperties); // Precondition IDictionary columnStateDefinitions = row.ColumnStateDefinitions; @@ -853,11 +830,11 @@ var result = new AdoptableWithProfileProbabilityFailureMechanismSectionResult(section); // Call - var row = new AdoptableWithProfileProbabilityFailureMechanismSectionResultRow(result, calculateStrategy, errorProvider, performAssemblyFunc, () => true, ConstructionProperties); + var row = new AdoptableWithProfileProbabilityFailureMechanismSectionResultRow(result, calculateStrategy, errorProvider, performAssemblyFunc, ConstructionProperties); // Assert IDictionary columnStateDefinitions = row.ColumnStateDefinitions; - + DataGridViewControlColumnStateDefinitionTestHelper.AssertColumnState( columnStateDefinitions[ConstructionProperties.SectionProbabilityIndex], true, true); @@ -890,7 +867,7 @@ }; // Call - var row = new AdoptableWithProfileProbabilityFailureMechanismSectionResultRow(result, calculateStrategy, errorProvider, performAssemblyFunc, () => true, ConstructionProperties); + var row = new AdoptableWithProfileProbabilityFailureMechanismSectionResultRow(result, calculateStrategy, errorProvider, performAssemblyFunc, ConstructionProperties); // Assert IDictionary columnStateDefinitions = row.ColumnStateDefinitions; @@ -937,11 +914,11 @@ }; // Call - var row = new AdoptableWithProfileProbabilityFailureMechanismSectionResultRow(result, calculateStrategy, errorProvider, performAssemblyFunc, () => true, ConstructionProperties); + var row = new AdoptableWithProfileProbabilityFailureMechanismSectionResultRow(result, calculateStrategy, errorProvider, performAssemblyFunc, ConstructionProperties); // Assert IDictionary columnStateDefinitions = row.ColumnStateDefinitions; - + DataGridViewControlColumnStateDefinitionTestHelper.AssertColumnState( columnStateDefinitions[ConstructionProperties.InitialFailureMechanismResultSectionProbabilityIndex], isEnabled, isReadOnly); @@ -976,7 +953,7 @@ }; // Call - var row = new AdoptableWithProfileProbabilityFailureMechanismSectionResultRow(result, calculateStrategy, errorProvider, performAssemblyFunc, () => true, ConstructionProperties); + var row = new AdoptableWithProfileProbabilityFailureMechanismSectionResultRow(result, calculateStrategy, errorProvider, performAssemblyFunc, ConstructionProperties); // Assert IDictionary columnStateDefinitions = row.ColumnStateDefinitions; @@ -990,11 +967,11 @@ } [Test] - [TestCase(ProbabilityRefinementType.Both, false)] - [TestCase(ProbabilityRefinementType.Profile, true)] - [TestCase(ProbabilityRefinementType.Section, false)] + [TestCase(ProbabilityRefinementType.Both)] + [TestCase(ProbabilityRefinementType.Profile)] + [TestCase(ProbabilityRefinementType.Section)] public void Constructor_WithApplyLengthEffectInSectionTrueAndProbabilityRefinementType_ExpectedColumnStates( - ProbabilityRefinementType probabilityRefinementType, bool sectionProbabilityIsReadOnly) + ProbabilityRefinementType probabilityRefinementType) { // Setup var mocks = new MockRepository(); @@ -1018,13 +995,13 @@ }; // Call - var row = new AdoptableWithProfileProbabilityFailureMechanismSectionResultRow(result, calculateStrategy, errorProvider, performAssemblyFunc, () => true, ConstructionProperties); + var row = new AdoptableWithProfileProbabilityFailureMechanismSectionResultRow(result, calculateStrategy, errorProvider, performAssemblyFunc, ConstructionProperties); // Assert IDictionary columnStateDefinitions = row.ColumnStateDefinitions; - + DataGridViewControlColumnStateDefinitionTestHelper.AssertColumnState( - columnStateDefinitions[ConstructionProperties.RefinedSectionProbabilityIndex], true, sectionProbabilityIsReadOnly); + columnStateDefinitions[ConstructionProperties.RefinedSectionProbabilityIndex], true); mocks.VerifyAll(); } @@ -1058,7 +1035,7 @@ }; // Call - var row = new AdoptableWithProfileProbabilityFailureMechanismSectionResultRow(result, calculateStrategy, errorProvider, performAssemblyFunc, () => false, ConstructionProperties); + var row = new AdoptableWithProfileProbabilityFailureMechanismSectionResultRow(result, calculateStrategy, errorProvider, performAssemblyFunc, ConstructionProperties); // Assert IDictionary columnStateDefinitions = row.ColumnStateDefinitions; @@ -1088,7 +1065,7 @@ var result = new AdoptableWithProfileProbabilityFailureMechanismSectionResult(section); // Call - var row = new AdoptableWithProfileProbabilityFailureMechanismSectionResultRow(result, calculateStrategy, errorProvider, performAssemblyFunc, () => true, ConstructionProperties); + var row = new AdoptableWithProfileProbabilityFailureMechanismSectionResultRow(result, calculateStrategy, errorProvider, performAssemblyFunc, ConstructionProperties); // Assert IDictionary columnStateDefinitions = row.ColumnStateDefinitions; Index: Riskeer/GrassCoverErosionInwards/src/Riskeer.GrassCoverErosionInwards.Forms/Views/GrassCoverErosionInwardsFailureMechanismResultView.cs =================================================================== diff -u -raa51178484bfa0afd5c9d133e38b2d84f935ec6f -r34aaff9e2a60c7fb76b5e6be3ff713fa252ccc39 --- Riskeer/GrassCoverErosionInwards/src/Riskeer.GrassCoverErosionInwards.Forms/Views/GrassCoverErosionInwardsFailureMechanismResultView.cs (.../GrassCoverErosionInwardsFailureMechanismResultView.cs) (revision aa51178484bfa0afd5c9d133e38b2d84f935ec6f) +++ Riskeer/GrassCoverErosionInwards/src/Riskeer.GrassCoverErosionInwards.Forms/Views/GrassCoverErosionInwardsFailureMechanismResultView.cs (.../GrassCoverErosionInwardsFailureMechanismResultView.cs) (revision 34aaff9e2a60c7fb76b5e6be3ff713fa252ccc39) @@ -93,7 +93,6 @@ CreateCalculateStrategy(sectionResult, calculationScenarios), CreateErrorProvider(sectionResult, calculationScenarios), () => GrassCoverErosionInwardsFailureMechanismAssemblyFactory.AssembleSection(sectionResult, FailureMechanism, AssessmentSection), - () => false, new AdoptableWithProfileProbabilityFailureMechanismSectionResultRow.ConstructionProperties { InitialFailureMechanismResultTypeIndex = initialFailureMechanismResultTypeIndex, Index: Riskeer/MacroStabilityInwards/src/Riskeer.MacroStabilityInwards.Forms/Views/MacroStabilityInwardsFailureMechanismResultView.cs =================================================================== diff -u -raa51178484bfa0afd5c9d133e38b2d84f935ec6f -r34aaff9e2a60c7fb76b5e6be3ff713fa252ccc39 --- Riskeer/MacroStabilityInwards/src/Riskeer.MacroStabilityInwards.Forms/Views/MacroStabilityInwardsFailureMechanismResultView.cs (.../MacroStabilityInwardsFailureMechanismResultView.cs) (revision aa51178484bfa0afd5c9d133e38b2d84f935ec6f) +++ Riskeer/MacroStabilityInwards/src/Riskeer.MacroStabilityInwards.Forms/Views/MacroStabilityInwardsFailureMechanismResultView.cs (.../MacroStabilityInwardsFailureMechanismResultView.cs) (revision 34aaff9e2a60c7fb76b5e6be3ff713fa252ccc39) @@ -91,7 +91,6 @@ CreateCalculateStrategy(sectionResult, calculationScenarios), CreateErrorProvider(sectionResult, calculationScenarios), () => MacroStabilityInwardsFailureMechanismAssemblyFactory.AssembleSection(sectionResult, FailureMechanism, AssessmentSection), - () => true, new AdoptableWithProfileProbabilityFailureMechanismSectionResultRow.ConstructionProperties { InitialFailureMechanismResultTypeIndex = initialFailureMechanismResultTypeIndex, Index: Riskeer/Piping/src/Riskeer.Piping.Forms/Views/PipingFailureMechanismResultView.cs =================================================================== diff -u -raa51178484bfa0afd5c9d133e38b2d84f935ec6f -r34aaff9e2a60c7fb76b5e6be3ff713fa252ccc39 --- Riskeer/Piping/src/Riskeer.Piping.Forms/Views/PipingFailureMechanismResultView.cs (.../PipingFailureMechanismResultView.cs) (revision aa51178484bfa0afd5c9d133e38b2d84f935ec6f) +++ Riskeer/Piping/src/Riskeer.Piping.Forms/Views/PipingFailureMechanismResultView.cs (.../PipingFailureMechanismResultView.cs) (revision 34aaff9e2a60c7fb76b5e6be3ff713fa252ccc39) @@ -107,7 +107,6 @@ PipingFailureMechanismSectionResultCalculateProbabilityStrategyFactory.CreateCalculateStrategy(sectionResult, FailureMechanism, AssessmentSection), CreateErrorProvider(sectionResult), () => PipingFailureMechanismAssemblyFactory.AssembleSection(sectionResult, FailureMechanism, AssessmentSection), - () => true, new AdoptableWithProfileProbabilityFailureMechanismSectionResultRow.ConstructionProperties { InitialFailureMechanismResultTypeIndex = initialFailureMechanismResultTypeIndex,