Fisheye: Tag 8fdea81472d659b7bb0d8433808226eda930d2d5 refers to a dead (removed) revision in file `Riskeer/Common/src/Riskeer.Common.Forms/PropertyClasses/WaterLevelCalculationsForUserDefinedTargetProbabilityProperties.cs'.
Fisheye: No comparison available. Pass `N' to diff?
Fisheye: Tag 8fdea81472d659b7bb0d8433808226eda930d2d5 refers to a dead (removed) revision in file `Riskeer/Common/src/Riskeer.Common.Forms/PropertyClasses/WaveHeightCalculationsForUserDefinedTargetProbabilityProperties.cs'.
Fisheye: No comparison available. Pass `N' to diff?
Index: Riskeer/Integration/src/Riskeer.Integration.Forms/PresentationObjects/WaterLevelCalculationsForUserDefinedTargetProbabilityProperties.cs
===================================================================
diff -u
--- Riskeer/Integration/src/Riskeer.Integration.Forms/PresentationObjects/WaterLevelCalculationsForUserDefinedTargetProbabilityProperties.cs (revision 0)
+++ Riskeer/Integration/src/Riskeer.Integration.Forms/PresentationObjects/WaterLevelCalculationsForUserDefinedTargetProbabilityProperties.cs (revision 8fdea81472d659b7bb0d8433808226eda930d2d5)
@@ -0,0 +1,81 @@
+// Copyright (C) Stichting Deltares 2021. All rights reserved.
+//
+// This file is part of Riskeer.
+//
+// Riskeer is free software: you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program. If not, see .
+//
+// All names, logos, and references to "Deltares" are registered trademarks of
+// Stichting Deltares and remain full property of Stichting Deltares at all times.
+// All rights reserved.
+
+using System;
+using System.ComponentModel;
+using Core.Common.Util.Attributes;
+using Core.Gui.Attributes;
+using Riskeer.Common.Data.Hydraulics;
+using Riskeer.Common.Forms.Properties;
+using Riskeer.Common.Forms.PropertyClasses;
+using Riskeer.Common.Forms.TypeConverters;
+
+namespace Riskeer.Integration.Forms.PresentationObjects
+{
+ ///
+ /// ViewModel of a collection of with a user specified
+ /// target probability based design water level calculation result for properties panel.
+ ///
+ public class WaterLevelCalculationsForUserDefinedTargetProbabilityProperties : DesignWaterLevelCalculationsProperties
+ {
+ private const int targetProbabilityPropertyIndex = 1;
+ private const int calculationsPropertyIndex = 2;
+
+ private readonly HydraulicBoundaryLocationCalculationsForTargetProbability calculationsForTargetProbability;
+
+ ///
+ /// Creates a new instance of .
+ ///
+ /// The to show the properties for.
+ /// Thrown when is null.
+ public WaterLevelCalculationsForUserDefinedTargetProbabilityProperties(HydraulicBoundaryLocationCalculationsForTargetProbability calculationsForTargetProbability)
+ : base(calculationsForTargetProbability?.HydraulicBoundaryLocationCalculations ?? throw new ArgumentNullException(nameof(calculationsForTargetProbability)))
+ {
+ this.calculationsForTargetProbability = calculationsForTargetProbability;
+ }
+
+ [PropertyOrder(calculationsPropertyIndex)]
+ public override DesignWaterLevelCalculationProperties[] Calculations
+ {
+ get
+ {
+ return base.Calculations;
+ }
+ }
+
+ [PropertyOrder(targetProbabilityPropertyIndex)]
+ [TypeConverter(typeof(NoProbabilityValueDoubleConverter))]
+ [ResourcesCategory(typeof(Resources), nameof(Resources.Categories_General))]
+ [ResourcesDisplayName(typeof(Resources), nameof(Resources.TargetProbability_DisplayName))]
+ [ResourcesDescription(typeof(Resources), nameof(Resources.TargetProbability_WaterLevels_Description))]
+ public double TargetProbability
+ {
+ get
+ {
+ return calculationsForTargetProbability.TargetProbability;
+ }
+ set
+ {
+ calculationsForTargetProbability.TargetProbability = value;
+ }
+ }
+ }
+}
\ No newline at end of file
Index: Riskeer/Integration/src/Riskeer.Integration.Forms/PresentationObjects/WaveHeightCalculationsForUserDefinedTargetProbabilityProperties.cs
===================================================================
diff -u
--- Riskeer/Integration/src/Riskeer.Integration.Forms/PresentationObjects/WaveHeightCalculationsForUserDefinedTargetProbabilityProperties.cs (revision 0)
+++ Riskeer/Integration/src/Riskeer.Integration.Forms/PresentationObjects/WaveHeightCalculationsForUserDefinedTargetProbabilityProperties.cs (revision 8fdea81472d659b7bb0d8433808226eda930d2d5)
@@ -0,0 +1,81 @@
+// Copyright (C) Stichting Deltares 2021. All rights reserved.
+//
+// This file is part of Riskeer.
+//
+// Riskeer is free software: you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program. If not, see .
+//
+// All names, logos, and references to "Deltares" are registered trademarks of
+// Stichting Deltares and remain full property of Stichting Deltares at all times.
+// All rights reserved.
+
+using System;
+using System.ComponentModel;
+using Core.Common.Util.Attributes;
+using Core.Gui.Attributes;
+using Riskeer.Common.Data.Hydraulics;
+using Riskeer.Common.Forms.Properties;
+using Riskeer.Common.Forms.PropertyClasses;
+using Riskeer.Common.Forms.TypeConverters;
+
+namespace Riskeer.Integration.Forms.PresentationObjects
+{
+ ///
+ /// ViewModel of a collection of with a user specified
+ /// target probability based wave height calculation result for properties panel.
+ ///
+ public class WaveHeightCalculationsForUserDefinedTargetProbabilityProperties : WaveHeightCalculationsProperties
+ {
+ private const int targetProbabilityPropertyIndex = 1;
+ private const int calculationsPropertyIndex = 2;
+
+ private readonly HydraulicBoundaryLocationCalculationsForTargetProbability calculationsForTargetProbability;
+
+ ///
+ /// Creates a new instance of .
+ ///
+ /// The to show the properties for.
+ /// Thrown when is null.
+ public WaveHeightCalculationsForUserDefinedTargetProbabilityProperties(HydraulicBoundaryLocationCalculationsForTargetProbability calculationsForTargetProbability)
+ : base(calculationsForTargetProbability?.HydraulicBoundaryLocationCalculations ?? throw new ArgumentNullException(nameof(calculationsForTargetProbability)))
+ {
+ this.calculationsForTargetProbability = calculationsForTargetProbability;
+ }
+
+ [PropertyOrder(calculationsPropertyIndex)]
+ public override WaveHeightCalculationProperties[] Calculations
+ {
+ get
+ {
+ return base.Calculations;
+ }
+ }
+
+ [PropertyOrder(targetProbabilityPropertyIndex)]
+ [TypeConverter(typeof(NoProbabilityValueDoubleConverter))]
+ [ResourcesCategory(typeof(Resources), nameof(Resources.Categories_General))]
+ [ResourcesDisplayName(typeof(Resources), nameof(Resources.TargetProbability_DisplayName))]
+ [ResourcesDescription(typeof(Resources), nameof(Resources.TargetProbability_WaveHeights_Description))]
+ public double TargetProbability
+ {
+ get
+ {
+ return calculationsForTargetProbability.TargetProbability;
+ }
+ set
+ {
+ calculationsForTargetProbability.TargetProbability = value;
+ }
+ }
+ }
+}
\ No newline at end of file
Index: Riskeer/Integration/test/Riskeer.Integration.Plugin.Test/PropertyInfos/WaterLevelCalculationsForUserDefinedTargetProbabilityContextPropertyInfoTest.cs
===================================================================
diff -u -r5970157264549d811f0bfa9d195d9afb4331511e -r8fdea81472d659b7bb0d8433808226eda930d2d5
--- Riskeer/Integration/test/Riskeer.Integration.Plugin.Test/PropertyInfos/WaterLevelCalculationsForUserDefinedTargetProbabilityContextPropertyInfoTest.cs (.../WaterLevelCalculationsForUserDefinedTargetProbabilityContextPropertyInfoTest.cs) (revision 5970157264549d811f0bfa9d195d9afb4331511e)
+++ Riskeer/Integration/test/Riskeer.Integration.Plugin.Test/PropertyInfos/WaterLevelCalculationsForUserDefinedTargetProbabilityContextPropertyInfoTest.cs (.../WaterLevelCalculationsForUserDefinedTargetProbabilityContextPropertyInfoTest.cs) (revision 8fdea81472d659b7bb0d8433808226eda930d2d5)
@@ -27,7 +27,7 @@
using Riskeer.Common.Data.AssessmentSection;
using Riskeer.Common.Data.Hydraulics;
using Riskeer.Common.Forms.PresentationObjects;
-using Riskeer.Common.Forms.PropertyClasses;
+using Riskeer.Integration.Forms.PresentationObjects;
namespace Riskeer.Integration.Plugin.Test.PropertyInfos
{
Index: Riskeer/Integration/test/Riskeer.Integration.Plugin.Test/PropertyInfos/WaveHeightCalculationsForUserDefinedTargetProbabilityContextPropertyInfoTest.cs
===================================================================
diff -u -r15b0cf9d31da36343974efde74463ad1951f4355 -r8fdea81472d659b7bb0d8433808226eda930d2d5
--- Riskeer/Integration/test/Riskeer.Integration.Plugin.Test/PropertyInfos/WaveHeightCalculationsForUserDefinedTargetProbabilityContextPropertyInfoTest.cs (.../WaveHeightCalculationsForUserDefinedTargetProbabilityContextPropertyInfoTest.cs) (revision 15b0cf9d31da36343974efde74463ad1951f4355)
+++ Riskeer/Integration/test/Riskeer.Integration.Plugin.Test/PropertyInfos/WaveHeightCalculationsForUserDefinedTargetProbabilityContextPropertyInfoTest.cs (.../WaveHeightCalculationsForUserDefinedTargetProbabilityContextPropertyInfoTest.cs) (revision 8fdea81472d659b7bb0d8433808226eda930d2d5)
@@ -27,7 +27,7 @@
using Riskeer.Common.Data.AssessmentSection;
using Riskeer.Common.Data.Hydraulics;
using Riskeer.Common.Forms.PresentationObjects;
-using Riskeer.Common.Forms.PropertyClasses;
+using Riskeer.Integration.Forms.PresentationObjects;
namespace Riskeer.Integration.Plugin.Test.PropertyInfos
{