Index: Ringtoets/Integration/src/Ringtoets.Integration.Forms/PresentationObjects/DesignWaterLevelLocationContext.cs
===================================================================
diff -u -r7594f72cabeb4802ffab5715e2edb2712fc1f0df -r75d12c89224759df39acf21f187f309a3e4ae274
--- Ringtoets/Integration/src/Ringtoets.Integration.Forms/PresentationObjects/DesignWaterLevelLocationContext.cs (.../DesignWaterLevelLocationContext.cs) (revision 7594f72cabeb4802ffab5715e2edb2712fc1f0df)
+++ Ringtoets/Integration/src/Ringtoets.Integration.Forms/PresentationObjects/DesignWaterLevelLocationContext.cs (.../DesignWaterLevelLocationContext.cs) (revision 75d12c89224759df39acf21f187f309a3e4ae274)
@@ -33,10 +33,11 @@
///
/// Creates a new instance of .
///
- /// The which the belongs to.
- /// The which the belongs to.
- /// Thrown when any input parameter is null.
- public DesignWaterLevelLocationContext(HydraulicBoundaryLocation wrappedData, HydraulicBoundaryDatabase hydraulicBoundaryDatabase)
- : base(wrappedData, hydraulicBoundaryDatabase) {}
+ /// The
+ /// which the belongs to.
+ /// Thrown when
+ /// is null.
+ public DesignWaterLevelLocationContext(HydraulicBoundaryLocation hydraulicBoundaryLocation)
+ : base(hydraulicBoundaryLocation) {}
}
}
\ No newline at end of file
Index: Ringtoets/Integration/src/Ringtoets.Integration.Forms/PresentationObjects/HydraulicBoundaryLocationContext.cs
===================================================================
diff -u -rf70b1b56aded32ecb0e2ff593eb089f4059125db -r75d12c89224759df39acf21f187f309a3e4ae274
--- Ringtoets/Integration/src/Ringtoets.Integration.Forms/PresentationObjects/HydraulicBoundaryLocationContext.cs (.../HydraulicBoundaryLocationContext.cs) (revision f70b1b56aded32ecb0e2ff593eb089f4059125db)
+++ Ringtoets/Integration/src/Ringtoets.Integration.Forms/PresentationObjects/HydraulicBoundaryLocationContext.cs (.../HydraulicBoundaryLocationContext.cs) (revision 75d12c89224759df39acf21f187f309a3e4ae274)
@@ -33,37 +33,11 @@
///
/// Creates a new instance of .
///
- /// The
+ /// The
/// which the belongs to.
- /// The
- /// which the belongs to.
- /// Thrown when any input parameter is null.
- protected HydraulicBoundaryLocationContext(HydraulicBoundaryLocation wrappedData,
- HydraulicBoundaryDatabase hydraulicBoundaryDatabase
- ) : base(wrappedData)
- {
- if (hydraulicBoundaryDatabase == null)
- {
- throw new ArgumentNullException(nameof(hydraulicBoundaryDatabase));
- }
- HydraulicBoundaryDatabase = hydraulicBoundaryDatabase;
- }
-
- ///
- /// Gets the .
- ///
- public HydraulicBoundaryDatabase HydraulicBoundaryDatabase { get; }
-
- public override bool Equals(WrappedObjectContextBase other)
- {
- return base.Equals(other)
- && ReferenceEquals(((HydraulicBoundaryLocationContext) other).HydraulicBoundaryDatabase, HydraulicBoundaryDatabase);
- }
-
- public override int GetHashCode()
- {
- return base.GetHashCode()
- ^ HydraulicBoundaryDatabase.GetHashCode();
- }
+ /// Thrown when
+ /// is null.
+ protected HydraulicBoundaryLocationContext(HydraulicBoundaryLocation hydraulicBoundaryLocation)
+ : base(hydraulicBoundaryLocation) {}
}
}
\ No newline at end of file
Index: Ringtoets/Integration/src/Ringtoets.Integration.Forms/PresentationObjects/WaveHeightLocationContext.cs
===================================================================
diff -u -r7594f72cabeb4802ffab5715e2edb2712fc1f0df -r75d12c89224759df39acf21f187f309a3e4ae274
--- Ringtoets/Integration/src/Ringtoets.Integration.Forms/PresentationObjects/WaveHeightLocationContext.cs (.../WaveHeightLocationContext.cs) (revision 7594f72cabeb4802ffab5715e2edb2712fc1f0df)
+++ Ringtoets/Integration/src/Ringtoets.Integration.Forms/PresentationObjects/WaveHeightLocationContext.cs (.../WaveHeightLocationContext.cs) (revision 75d12c89224759df39acf21f187f309a3e4ae274)
@@ -33,10 +33,10 @@
///
/// Creates a new instance of .
///
- /// The which the belongs to.
- /// The which the belongs to.
- /// Thrown when any input parameter is null.
- public WaveHeightLocationContext(HydraulicBoundaryLocation wrappedData, HydraulicBoundaryDatabase hydraulicBoundaryDatabase)
- : base(wrappedData, hydraulicBoundaryDatabase) {}
+ /// The which the belongs to.
+ /// Thrown when
+ /// is null.
+ public WaveHeightLocationContext(HydraulicBoundaryLocation hydraulicBoundaryLocation)
+ : base(hydraulicBoundaryLocation) {}
}
}
\ No newline at end of file
Fisheye: Tag 75d12c89224759df39acf21f187f309a3e4ae274 refers to a dead (removed) revision in file `Ringtoets/Integration/src/Ringtoets.Integration.Forms/PropertyClasses/DesignWaterLevelLocationContextProperties.cs'.
Fisheye: No comparison available. Pass `N' to diff?
Index: Ringtoets/Integration/src/Ringtoets.Integration.Forms/PropertyClasses/DesignWaterLevelLocationProperties.cs
===================================================================
diff -u
--- Ringtoets/Integration/src/Ringtoets.Integration.Forms/PropertyClasses/DesignWaterLevelLocationProperties.cs (revision 0)
+++ Ringtoets/Integration/src/Ringtoets.Integration.Forms/PropertyClasses/DesignWaterLevelLocationProperties.cs (revision 75d12c89224759df39acf21f187f309a3e4ae274)
@@ -0,0 +1,163 @@
+// Copyright (C) Stichting Deltares 2017. All rights reserved.
+//
+// This file is part of Ringtoets.
+//
+// Ringtoets 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.ComponentModel;
+using Core.Common.Base.Data;
+using Core.Common.Gui.Attributes;
+using Core.Common.Util;
+using Core.Common.Util.Attributes;
+using Ringtoets.Common.Data.Hydraulics;
+using Ringtoets.Common.Data.IllustrationPoints;
+using Ringtoets.Common.Forms.TypeConverters;
+using Ringtoets.Integration.Forms.Properties;
+using RingtoetsCommonFormsResources = Ringtoets.Common.Forms.Properties.Resources;
+
+namespace Ringtoets.Integration.Forms.PropertyClasses
+{
+ ///
+ /// ViewModel of with for properties panel.
+ ///
+ public class DesignWaterLevelLocationProperties : HydraulicBoundaryLocationProperties
+ {
+ ///
+ /// Creates a new instance of .
+ ///
+ public DesignWaterLevelLocationProperties(HydraulicBoundaryLocation hydraulicBoundaryLocation)
+ : base(hydraulicBoundaryLocation, new ConstructionProperties
+ {
+ IdIndex = 1,
+ NameIndex = 2,
+ LocationIndex = 3,
+ GoverningWindDirectionIndex = 11,
+ StochastsIndex = 12,
+ DurationsIndex = 13,
+ IllustrationPointsIndex = 14
+ }) {}
+
+ [PropertyOrder(4)]
+ [ResourcesCategory(typeof(RingtoetsCommonFormsResources), nameof(RingtoetsCommonFormsResources.Categories_Result))]
+ [ResourcesDisplayName(typeof(Resources), nameof(Resources.HydraulicBoundaryDatabase_Location_DesignWaterLevel_DisplayName))]
+ [ResourcesDescription(typeof(Resources), nameof(Resources.HydraulicBoundaryDatabase_Location_DesignWaterLevel_Description))]
+ [TypeConverter(typeof(NoValueRoundedDoubleConverter))]
+ public RoundedDouble DesignWaterLevel
+ {
+ get
+ {
+ return data.DesignWaterLevel;
+ }
+ }
+
+ [PropertyOrder(5)]
+ [ResourcesCategory(typeof(RingtoetsCommonFormsResources), nameof(RingtoetsCommonFormsResources.Categories_Result))]
+ [ResourcesDisplayName(typeof(RingtoetsCommonFormsResources), nameof(RingtoetsCommonFormsResources.CalculationOutput_TargetProbability_DisplayName))]
+ [ResourcesDescription(typeof(RingtoetsCommonFormsResources), nameof(RingtoetsCommonFormsResources.CalculationOutput_TargetProbability_Description))]
+ [TypeConverter(typeof(NoProbabilityValueDoubleConverter))]
+ public double TargetProbability
+ {
+ get
+ {
+ HydraulicBoundaryLocationOutput output = data.DesignWaterLevelCalculation.Output;
+ return output?.TargetProbability ?? double.NaN;
+ }
+ }
+
+ [PropertyOrder(6)]
+ [ResourcesCategory(typeof(RingtoetsCommonFormsResources), nameof(RingtoetsCommonFormsResources.Categories_Result))]
+ [ResourcesDisplayName(typeof(RingtoetsCommonFormsResources), nameof(RingtoetsCommonFormsResources.CalculationOutput_TargetReliability_DisplayName))]
+ [ResourcesDescription(typeof(RingtoetsCommonFormsResources), nameof(RingtoetsCommonFormsResources.CalculationOutput_TargetReliability_Description))]
+ [TypeConverter(typeof(NoValueRoundedDoubleConverter))]
+ public RoundedDouble TargetReliability
+ {
+ get
+ {
+ HydraulicBoundaryLocationOutput output = data.DesignWaterLevelCalculation.Output;
+ return output?.TargetReliability ?? RoundedDouble.NaN;
+ }
+ }
+
+ [PropertyOrder(7)]
+ [ResourcesCategory(typeof(RingtoetsCommonFormsResources), nameof(RingtoetsCommonFormsResources.Categories_Result))]
+ [ResourcesDisplayName(typeof(RingtoetsCommonFormsResources), nameof(RingtoetsCommonFormsResources.CalculationOutput_CalculatedProbability_DisplayName))]
+ [ResourcesDescription(typeof(RingtoetsCommonFormsResources), nameof(RingtoetsCommonFormsResources.CalculationOutput_CalculatedProbability_Description))]
+ [TypeConverter(typeof(NoProbabilityValueDoubleConverter))]
+ public double CalculatedProbability
+ {
+ get
+ {
+ HydraulicBoundaryLocationOutput output = data.DesignWaterLevelCalculation.Output;
+ return output?.CalculatedProbability ?? double.NaN;
+ }
+ }
+
+ [PropertyOrder(8)]
+ [ResourcesCategory(typeof(RingtoetsCommonFormsResources), nameof(RingtoetsCommonFormsResources.Categories_Result))]
+ [ResourcesDisplayName(typeof(RingtoetsCommonFormsResources), nameof(RingtoetsCommonFormsResources.CalculationOutput_CalculatedReliability_DisplayName))]
+ [ResourcesDescription(typeof(RingtoetsCommonFormsResources), nameof(RingtoetsCommonFormsResources.CalculationOutput_CalculatedReliability_Description))]
+ [TypeConverter(typeof(NoValueRoundedDoubleConverter))]
+ public RoundedDouble CalculatedReliability
+ {
+ get
+ {
+ HydraulicBoundaryLocationOutput output = data.DesignWaterLevelCalculation.Output;
+ return output?.CalculatedReliability ?? RoundedDouble.NaN;
+ }
+ }
+
+ [PropertyOrder(9)]
+ [ResourcesCategory(typeof(RingtoetsCommonFormsResources), nameof(RingtoetsCommonFormsResources.Categories_Result))]
+ [ResourcesDisplayName(typeof(RingtoetsCommonFormsResources), nameof(RingtoetsCommonFormsResources.CalculationOutput_Convergence_DisplayName))]
+ [ResourcesDescription(typeof(Resources), nameof(Resources.HydraulicBoundaryDatabase_Convergence_DesignWaterLevel_Description))]
+ public string Convergence
+ {
+ get
+ {
+ return new EnumDisplayWrapper(data.DesignWaterLevelCalculationConvergence).DisplayName;
+ }
+ }
+
+ [PropertyOrder(10)]
+ [ResourcesCategory(typeof(RingtoetsCommonFormsResources), nameof(RingtoetsCommonFormsResources.Categories_IllustrationPoints))]
+ [ResourcesDisplayName(typeof(RingtoetsCommonFormsResources), nameof(RingtoetsCommonFormsResources.ShouldIllustrationPointsBeCalculated_DisplayName))]
+ [ResourcesDescription(typeof(RingtoetsCommonFormsResources), nameof(RingtoetsCommonFormsResources.ShouldIllustrationPointsBeCalculated_Description))]
+ public bool ShouldIllustrationPointsBeCalculated
+ {
+ get
+ {
+ return data.DesignWaterLevelCalculation.InputParameters.ShouldIllustrationPointsBeCalculated;
+ }
+ set
+ {
+ data.DesignWaterLevelCalculation.InputParameters.ShouldIllustrationPointsBeCalculated = value;
+ data.NotifyObservers();
+ }
+ }
+
+ protected override GeneralResult GetGeneralResult()
+ {
+ if (data.DesignWaterLevelCalculation.HasOutput
+ && data.DesignWaterLevelCalculation.Output.HasGeneralResult)
+ {
+ return data.DesignWaterLevelCalculation.Output.GeneralResult;
+ }
+ return null;
+ }
+ }
+}
\ No newline at end of file
Fisheye: Tag 75d12c89224759df39acf21f187f309a3e4ae274 refers to a dead (removed) revision in file `Ringtoets/Integration/src/Ringtoets.Integration.Forms/PropertyClasses/DesignWaterLevelLocationsContextProperties.cs'.
Fisheye: No comparison available. Pass `N' to diff?
Index: Ringtoets/Integration/src/Ringtoets.Integration.Forms/PropertyClasses/DesignWaterLevelLocationsProperties.cs
===================================================================
diff -u
--- Ringtoets/Integration/src/Ringtoets.Integration.Forms/PropertyClasses/DesignWaterLevelLocationsProperties.cs (revision 0)
+++ Ringtoets/Integration/src/Ringtoets.Integration.Forms/PropertyClasses/DesignWaterLevelLocationsProperties.cs (revision 75d12c89224759df39acf21f187f309a3e4ae274)
@@ -0,0 +1,67 @@
+// Copyright (C) Stichting Deltares 2017. All rights reserved.
+//
+// This file is part of Ringtoets.
+//
+// Ringtoets 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 System.Linq;
+using Core.Common.Base;
+using Core.Common.Gui.Converters;
+using Core.Common.Gui.PropertyBag;
+using Core.Common.Util.Attributes;
+using Ringtoets.Common.Data.Hydraulics;
+using RingtoetsCommonFormsResources = Ringtoets.Common.Forms.Properties.Resources;
+
+namespace Ringtoets.Integration.Forms.PropertyClasses
+{
+ ///
+ /// ViewModel of an enumeration of with
+ /// for properties panel.
+ ///
+ public class DesignWaterLevelLocationsProperties : ObjectProperties>
+ {
+ ///
+ /// Creates a new instance of .
+ ///
+ /// The list of hydraulic boundary locations to set as data.
+ /// Thrown when is null.
+ public DesignWaterLevelLocationsProperties(ObservableList hydraulicBoundaryLocations)
+ {
+ if (hydraulicBoundaryLocations == null)
+ {
+ throw new ArgumentNullException(nameof(hydraulicBoundaryLocations));
+ }
+
+ Data = hydraulicBoundaryLocations;
+ }
+
+ [TypeConverter(typeof(ExpandableArrayConverter))]
+ [ResourcesCategory(typeof(RingtoetsCommonFormsResources), nameof(RingtoetsCommonFormsResources.Categories_General))]
+ [ResourcesDisplayName(typeof(RingtoetsCommonFormsResources), nameof(RingtoetsCommonFormsResources.HydraulicBoundaryDatabase_Locations_DisplayName))]
+ [ResourcesDescription(typeof(RingtoetsCommonFormsResources), nameof(RingtoetsCommonFormsResources.HydraulicBoundaryDatabase_Locations_Description))]
+ public DesignWaterLevelLocationProperties[] Locations
+ {
+ get
+ {
+ return data.Select(loc => new DesignWaterLevelLocationProperties(loc)).ToArray();
+ }
+ }
+ }
+}
\ No newline at end of file
Index: Ringtoets/Integration/src/Ringtoets.Integration.Forms/PropertyClasses/HydraulicBoundaryLocationProperties.cs
===================================================================
diff -u -rac96d7c315129af851634ed5a4a6800b59ede718 -r75d12c89224759df39acf21f187f309a3e4ae274
--- Ringtoets/Integration/src/Ringtoets.Integration.Forms/PropertyClasses/HydraulicBoundaryLocationProperties.cs (.../HydraulicBoundaryLocationProperties.cs) (revision ac96d7c315129af851634ed5a4a6800b59ede718)
+++ Ringtoets/Integration/src/Ringtoets.Integration.Forms/PropertyClasses/HydraulicBoundaryLocationProperties.cs (.../HydraulicBoundaryLocationProperties.cs) (revision 75d12c89224759df39acf21f187f309a3e4ae274)
@@ -19,6 +19,7 @@
// Stichting Deltares and remain full property of Stichting Deltares at all times.
// All rights reserved.
+using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
@@ -30,7 +31,6 @@
using Ringtoets.Common.Data.Hydraulics;
using Ringtoets.Common.Data.IllustrationPoints;
using Ringtoets.Common.Forms.PropertyClasses;
-using Ringtoets.Integration.Forms.PresentationObjects;
using RingtoetsCommonFormsResources = Ringtoets.Common.Forms.Properties.Resources;
namespace Ringtoets.Integration.Forms.PropertyClasses
@@ -39,12 +39,23 @@
/// ViewModel of for properties panel.
///
[TypeConverter(typeof(ExpandableObjectConverter))]
- public abstract class HydraulicBoundaryLocationProperties : ObjectProperties
+ public abstract class HydraulicBoundaryLocationProperties : ObjectProperties
{
private readonly Dictionary propertyIndexLookup;
- protected HydraulicBoundaryLocationProperties(ConstructionProperties propertyIndexes)
+ protected HydraulicBoundaryLocationProperties(HydraulicBoundaryLocation hydraulicBoundaryLocation, ConstructionProperties propertyIndexes)
{
+ if (hydraulicBoundaryLocation == null)
+ {
+ throw new ArgumentNullException(nameof(hydraulicBoundaryLocation));
+ }
+
+ if (propertyIndexes == null)
+ {
+ throw new ArgumentNullException(nameof(propertyIndexes));
+ }
+
+ Data = hydraulicBoundaryLocation;
propertyIndexLookup = new Dictionary
{
{
@@ -79,7 +90,7 @@
{
get
{
- return data.WrappedData.Id;
+ return data.Id;
}
}
@@ -91,7 +102,7 @@
{
get
{
- return data.WrappedData.Name;
+ return data.Name;
}
}
@@ -103,7 +114,7 @@
{
get
{
- return data.WrappedData.Location;
+ return data.Location;
}
}
Fisheye: Tag 75d12c89224759df39acf21f187f309a3e4ae274 refers to a dead (removed) revision in file `Ringtoets/Integration/src/Ringtoets.Integration.Forms/PropertyClasses/WaveHeightLocationContextProperties.cs'.
Fisheye: No comparison available. Pass `N' to diff?
Index: Ringtoets/Integration/src/Ringtoets.Integration.Forms/PropertyClasses/WaveHeightLocationProperties.cs
===================================================================
diff -u
--- Ringtoets/Integration/src/Ringtoets.Integration.Forms/PropertyClasses/WaveHeightLocationProperties.cs (revision 0)
+++ Ringtoets/Integration/src/Ringtoets.Integration.Forms/PropertyClasses/WaveHeightLocationProperties.cs (revision 75d12c89224759df39acf21f187f309a3e4ae274)
@@ -0,0 +1,164 @@
+// Copyright (C) Stichting Deltares 2017. All rights reserved.
+//
+// This file is part of Ringtoets.
+//
+// Ringtoets 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.ComponentModel;
+using Core.Common.Base.Data;
+using Core.Common.Gui.Attributes;
+using Core.Common.Util;
+using Core.Common.Util.Attributes;
+using Ringtoets.Common.Data.Hydraulics;
+using Ringtoets.Common.Data.IllustrationPoints;
+using Ringtoets.Common.Forms.TypeConverters;
+using Ringtoets.Integration.Forms.Properties;
+using RingtoetsCommonFormsResources = Ringtoets.Common.Forms.Properties.Resources;
+
+namespace Ringtoets.Integration.Forms.PropertyClasses
+{
+ ///
+ /// ViewModel of with for properties panel.
+ ///
+ public class WaveHeightLocationProperties : HydraulicBoundaryLocationProperties
+ {
+ ///
+ /// Creates a new instance of .
+ ///
+ public WaveHeightLocationProperties(HydraulicBoundaryLocation hydraulicBoundaryLocation)
+ : base(hydraulicBoundaryLocation, new ConstructionProperties
+ {
+ IdIndex = 1,
+ NameIndex = 2,
+ LocationIndex = 3,
+ GoverningWindDirectionIndex = 11,
+ StochastsIndex = 12,
+ DurationsIndex = 13,
+ IllustrationPointsIndex = 14
+ }) {}
+
+ [PropertyOrder(4)]
+ [ResourcesCategory(typeof(RingtoetsCommonFormsResources), nameof(RingtoetsCommonFormsResources.Categories_Result))]
+ [ResourcesDisplayName(typeof(Resources), nameof(Resources.HydraulicBoundaryDatabase_Location_WaveHeight_DisplayName))]
+ [ResourcesDescription(typeof(Resources), nameof(Resources.HydraulicBoundaryDatabase_Location_WaveHeight_Description))]
+ [TypeConverter(typeof(NoValueRoundedDoubleConverter))]
+ public RoundedDouble WaveHeight
+ {
+ get
+ {
+ return data.WaveHeight;
+ }
+ }
+
+ [PropertyOrder(5)]
+ [ResourcesCategory(typeof(RingtoetsCommonFormsResources), nameof(RingtoetsCommonFormsResources.Categories_Result))]
+ [ResourcesDisplayName(typeof(RingtoetsCommonFormsResources), nameof(RingtoetsCommonFormsResources.CalculationOutput_TargetProbability_DisplayName))]
+ [ResourcesDescription(typeof(RingtoetsCommonFormsResources), nameof(RingtoetsCommonFormsResources.CalculationOutput_TargetProbability_Description))]
+ [TypeConverter(typeof(NoProbabilityValueDoubleConverter))]
+ public double TargetProbability
+ {
+ get
+ {
+ HydraulicBoundaryLocationOutput output = data.WaveHeightCalculation.Output;
+ return output?.TargetProbability ?? double.NaN;
+ }
+ }
+
+ [PropertyOrder(6)]
+ [ResourcesCategory(typeof(RingtoetsCommonFormsResources), nameof(RingtoetsCommonFormsResources.Categories_Result))]
+ [ResourcesDisplayName(typeof(RingtoetsCommonFormsResources), nameof(RingtoetsCommonFormsResources.CalculationOutput_TargetReliability_DisplayName))]
+ [ResourcesDescription(typeof(RingtoetsCommonFormsResources), nameof(RingtoetsCommonFormsResources.CalculationOutput_TargetReliability_Description))]
+ [TypeConverter(typeof(NoValueRoundedDoubleConverter))]
+ public RoundedDouble TargetReliability
+ {
+ get
+ {
+ HydraulicBoundaryLocationOutput output = data.WaveHeightCalculation.Output;
+ return output?.TargetReliability ?? RoundedDouble.NaN;
+ }
+ }
+
+ [PropertyOrder(7)]
+ [ResourcesCategory(typeof(RingtoetsCommonFormsResources), nameof(RingtoetsCommonFormsResources.Categories_Result))]
+ [ResourcesDisplayName(typeof(RingtoetsCommonFormsResources), nameof(RingtoetsCommonFormsResources.CalculationOutput_CalculatedProbability_DisplayName))]
+ [ResourcesDescription(typeof(RingtoetsCommonFormsResources), nameof(RingtoetsCommonFormsResources.CalculationOutput_CalculatedProbability_Description))]
+ [TypeConverter(typeof(NoProbabilityValueDoubleConverter))]
+ public double CalculatedProbability
+ {
+ get
+ {
+ HydraulicBoundaryLocationOutput output = data.WaveHeightCalculation.Output;
+ return output?.CalculatedProbability ?? double.NaN;
+ }
+ }
+
+ [PropertyOrder(8)]
+ [ResourcesCategory(typeof(RingtoetsCommonFormsResources), nameof(RingtoetsCommonFormsResources.Categories_Result))]
+ [ResourcesDisplayName(typeof(RingtoetsCommonFormsResources), nameof(RingtoetsCommonFormsResources.CalculationOutput_CalculatedReliability_DisplayName))]
+ [ResourcesDescription(typeof(RingtoetsCommonFormsResources), nameof(RingtoetsCommonFormsResources.CalculationOutput_CalculatedReliability_Description))]
+ [TypeConverter(typeof(NoValueRoundedDoubleConverter))]
+ public RoundedDouble CalculatedReliability
+ {
+ get
+ {
+ HydraulicBoundaryLocationOutput output = data.WaveHeightCalculation.Output;
+ return output?.CalculatedReliability ?? RoundedDouble.NaN;
+ }
+ }
+
+ [PropertyOrder(9)]
+ [ResourcesCategory(typeof(RingtoetsCommonFormsResources), nameof(RingtoetsCommonFormsResources.Categories_Result))]
+ [ResourcesDisplayName(typeof(RingtoetsCommonFormsResources), nameof(RingtoetsCommonFormsResources.CalculationOutput_Convergence_DisplayName))]
+ [ResourcesDescription(typeof(Resources), nameof(Resources.HydraulicBoundaryDatabase_Convergence_WaveHeight_Description))]
+ public string Convergence
+ {
+ get
+ {
+ return new EnumDisplayWrapper(data.WaveHeightCalculationConvergence).DisplayName;
+ }
+ }
+
+ [PropertyOrder(10)]
+ [ResourcesCategory(typeof(RingtoetsCommonFormsResources), nameof(RingtoetsCommonFormsResources.Categories_IllustrationPoints))]
+ [ResourcesDisplayName(typeof(RingtoetsCommonFormsResources), nameof(RingtoetsCommonFormsResources.ShouldIllustrationPointsBeCalculated_DisplayName))]
+ [ResourcesDescription(typeof(RingtoetsCommonFormsResources), nameof(RingtoetsCommonFormsResources.ShouldIllustrationPointsBeCalculated_Description))]
+ public bool ShouldIllustrationPointsBeCalculated
+ {
+ get
+ {
+ return data.WaveHeightCalculation.InputParameters.ShouldIllustrationPointsBeCalculated;
+ }
+ set
+ {
+ data.WaveHeightCalculation.InputParameters.ShouldIllustrationPointsBeCalculated = value;
+ data.NotifyObservers();
+ }
+ }
+
+ protected override GeneralResult GetGeneralResult()
+ {
+ if (data.WaveHeightCalculation.HasOutput
+ && data.WaveHeightCalculation.Output.HasGeneralResult)
+ {
+ return data.WaveHeightCalculation.Output.GeneralResult;
+ }
+
+ return null;
+ }
+ }
+}
\ No newline at end of file
Fisheye: Tag 75d12c89224759df39acf21f187f309a3e4ae274 refers to a dead (removed) revision in file `Ringtoets/Integration/src/Ringtoets.Integration.Forms/PropertyClasses/WaveHeightLocationsContextProperties.cs'.
Fisheye: No comparison available. Pass `N' to diff?
Index: Ringtoets/Integration/src/Ringtoets.Integration.Forms/PropertyClasses/WaveHeightLocationsProperties.cs
===================================================================
diff -u
--- Ringtoets/Integration/src/Ringtoets.Integration.Forms/PropertyClasses/WaveHeightLocationsProperties.cs (revision 0)
+++ Ringtoets/Integration/src/Ringtoets.Integration.Forms/PropertyClasses/WaveHeightLocationsProperties.cs (revision 75d12c89224759df39acf21f187f309a3e4ae274)
@@ -0,0 +1,67 @@
+// Copyright (C) Stichting Deltares 2017. All rights reserved.
+//
+// This file is part of Ringtoets.
+//
+// Ringtoets 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 System.Linq;
+using Core.Common.Base;
+using Core.Common.Gui.Converters;
+using Core.Common.Gui.PropertyBag;
+using Core.Common.Util.Attributes;
+using Ringtoets.Common.Data.Hydraulics;
+using RingtoetsCommonFormsResources = Ringtoets.Common.Forms.Properties.Resources;
+
+namespace Ringtoets.Integration.Forms.PropertyClasses
+{
+ ///
+ /// ViewModel of an enumeration of with
+ /// for properties panel.
+ ///
+ public class WaveHeightLocationsProperties : ObjectProperties>
+ {
+ ///
+ /// Creates a new instance of .
+ ///
+ /// The hydraulic boundary locations to set as data.
+ /// Thrown when is null.
+ public WaveHeightLocationsProperties(ObservableList hydraulicBoundaryLocations)
+ {
+ if (hydraulicBoundaryLocations == null)
+ {
+ throw new ArgumentNullException(nameof(hydraulicBoundaryLocations));
+ }
+
+ Data = hydraulicBoundaryLocations;
+ }
+
+ [TypeConverter(typeof(ExpandableArrayConverter))]
+ [ResourcesCategory(typeof(RingtoetsCommonFormsResources), nameof(RingtoetsCommonFormsResources.Categories_General))]
+ [ResourcesDisplayName(typeof(RingtoetsCommonFormsResources), nameof(RingtoetsCommonFormsResources.HydraulicBoundaryDatabase_Locations_DisplayName))]
+ [ResourcesDescription(typeof(RingtoetsCommonFormsResources), nameof(RingtoetsCommonFormsResources.HydraulicBoundaryDatabase_Locations_Description))]
+ public WaveHeightLocationProperties[] Locations
+ {
+ get
+ {
+ return data.Select(loc => new WaveHeightLocationProperties(loc)).ToArray();
+ }
+ }
+ }
+}
\ No newline at end of file
Index: Ringtoets/Integration/src/Ringtoets.Integration.Forms/Ringtoets.Integration.Forms.csproj
===================================================================
diff -u -rac96d7c315129af851634ed5a4a6800b59ede718 -r75d12c89224759df39acf21f187f309a3e4ae274
--- Ringtoets/Integration/src/Ringtoets.Integration.Forms/Ringtoets.Integration.Forms.csproj (.../Ringtoets.Integration.Forms.csproj) (revision ac96d7c315129af851634ed5a4a6800b59ede718)
+++ Ringtoets/Integration/src/Ringtoets.Integration.Forms/Ringtoets.Integration.Forms.csproj (.../Ringtoets.Integration.Forms.csproj) (revision 75d12c89224759df39acf21f187f309a3e4ae274)
@@ -36,10 +36,10 @@
-
-
+
+
-
+
@@ -51,7 +51,7 @@
-
+ Form
Index: Ringtoets/Integration/src/Ringtoets.Integration.Forms/Views/DesignWaterLevelLocationsView.cs
===================================================================
diff -u -rb4a4cd5c690555b65075132adac80b146343430f -r75d12c89224759df39acf21f187f309a3e4ae274
--- Ringtoets/Integration/src/Ringtoets.Integration.Forms/Views/DesignWaterLevelLocationsView.cs (.../DesignWaterLevelLocationsView.cs) (revision b4a4cd5c690555b65075132adac80b146343430f)
+++ Ringtoets/Integration/src/Ringtoets.Integration.Forms/Views/DesignWaterLevelLocationsView.cs (.../DesignWaterLevelLocationsView.cs) (revision 75d12c89224759df39acf21f187f309a3e4ae274)
@@ -59,8 +59,7 @@
DataGridViewRow currentRow = dataGridViewControl.CurrentRow;
return currentRow != null
- ? new DesignWaterLevelLocationContext(((HydraulicBoundaryLocationRow) currentRow.DataBoundItem).CalculatableObject,
- AssessmentSection.HydraulicBoundaryDatabase)
+ ? new DesignWaterLevelLocationContext(((HydraulicBoundaryLocationRow) currentRow.DataBoundItem).CalculatableObject)
: null;
}
Index: Ringtoets/Integration/src/Ringtoets.Integration.Forms/Views/WaveHeightLocationsView.cs
===================================================================
diff -u -r55e69da3d14b07eba90b3e48c39f32f134c9a271 -r75d12c89224759df39acf21f187f309a3e4ae274
--- Ringtoets/Integration/src/Ringtoets.Integration.Forms/Views/WaveHeightLocationsView.cs (.../WaveHeightLocationsView.cs) (revision 55e69da3d14b07eba90b3e48c39f32f134c9a271)
+++ Ringtoets/Integration/src/Ringtoets.Integration.Forms/Views/WaveHeightLocationsView.cs (.../WaveHeightLocationsView.cs) (revision 75d12c89224759df39acf21f187f309a3e4ae274)
@@ -59,8 +59,7 @@
DataGridViewRow currentRow = dataGridViewControl.CurrentRow;
return currentRow != null
- ? new WaveHeightLocationContext(((HydraulicBoundaryLocationRow) currentRow.DataBoundItem).CalculatableObject,
- AssessmentSection.HydraulicBoundaryDatabase)
+ ? new WaveHeightLocationContext(((HydraulicBoundaryLocationRow) currentRow.DataBoundItem).CalculatableObject)
: null;
}
Index: Ringtoets/Integration/src/Ringtoets.Integration.Plugin/RingtoetsPlugin.cs
===================================================================
diff -u -r0d495f2706215f1b75da521c905eb6105f2f8a34 -r75d12c89224759df39acf21f187f309a3e4ae274
--- Ringtoets/Integration/src/Ringtoets.Integration.Plugin/RingtoetsPlugin.cs (.../RingtoetsPlugin.cs) (revision 0d495f2706215f1b75da521c905eb6105f2f8a34)
+++ Ringtoets/Integration/src/Ringtoets.Integration.Plugin/RingtoetsPlugin.cs (.../RingtoetsPlugin.cs) (revision 75d12c89224759df39acf21f187f309a3e4ae274)
@@ -271,6 +271,7 @@
{
throw new InvalidOperationException("Gui cannot be null");
}
+
assessmentSectionFromFileCommandHandler = new AssessmentSectionFromFileCommandHandler(Gui.MainWindow, Gui, Gui.DocumentViewController);
hydraulicBoundaryLocationCalculationGuiService = new HydraulicBoundaryLocationCalculationGuiService(Gui.MainWindow);
@@ -313,18 +314,24 @@
{
CreateInstance = context => new StructuresOutputProperties(context.WrappedData.Output)
};
- yield return new PropertyInfo
+ yield return new PropertyInfo
{
- CreateInstance = context => new DesignWaterLevelLocationsContextProperties(
- context.WrappedData.HydraulicBoundaryDatabase)
+ CreateInstance = context => new DesignWaterLevelLocationsProperties(
+ context.WrappedData.HydraulicBoundaryDatabase.Locations)
};
- yield return new PropertyInfo();
- yield return new PropertyInfo
+ yield return new PropertyInfo
{
- CreateInstance = context => new WaveHeightLocationsContextProperties(
- context.WrappedData.HydraulicBoundaryDatabase)
+ CreateInstance = context => new DesignWaterLevelLocationProperties(context.WrappedData)
};
- yield return new PropertyInfo();
+ yield return new PropertyInfo
+ {
+ CreateInstance = context => new WaveHeightLocationsProperties(
+ context.WrappedData.HydraulicBoundaryDatabase.Locations)
+ };
+ yield return new PropertyInfo
+ {
+ CreateInstance = context => new WaveHeightLocationProperties(context.WrappedData)
+ };
yield return new PropertyInfo();
yield return new PropertyInfo
{
@@ -635,7 +642,7 @@
{
Text = categoryTreeFolder => categoryTreeFolder.Name,
Image = categoryTreeFolder => GetFolderIcon(categoryTreeFolder.Category),
- ChildNodeObjects = categoryTreeFolder => categoryTreeFolder.Contents.Cast