Index: Ringtoets/ClosingStructures/src/Ringtoets.ClosingStructures.Forms/PropertyClasses/ClosingStructuresInputContextProperties.cs
===================================================================
diff -u
--- Ringtoets/ClosingStructures/src/Ringtoets.ClosingStructures.Forms/PropertyClasses/ClosingStructuresInputContextProperties.cs (revision 0)
+++ Ringtoets/ClosingStructures/src/Ringtoets.ClosingStructures.Forms/PropertyClasses/ClosingStructuresInputContextProperties.cs (revision f7a04cbe5e015450af38a8983a4c57c5022722f2)
@@ -0,0 +1,120 @@
+// Copyright (C) Stichting Deltares 2016. 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.Collections.Generic;
+using Core.Common.Base.Data;
+using Core.Common.Gui.Attributes;
+using Core.Common.Utils.Attributes;
+using Ringtoets.ClosingStructures.Data;
+using Ringtoets.ClosingStructures.Forms.PresentationObjects;
+using Ringtoets.Common.Data.DikeProfiles;
+using Ringtoets.Common.Forms.PropertyClasses;
+using RingtoetsCommonFormsResources = Ringtoets.Common.Forms.Properties.Resources;
+
+namespace Ringtoets.ClosingStructures.Forms.PropertyClasses
+{
+ ///
+ /// ViewModel of for properties panel.
+ ///
+ public class ClosingStructuresInputContextProperties : StructuresInputBaseProperties
+ {
+ private const int structurePropertyIndex = 1;
+ private const int structureLocationPropertyIndex = 2;
+ private const int structureNormalOrientationPropertyIndex = 3;
+ private const int flowWidthAtBottomProtectionPropertyIndex = 4;
+ private const int widthFlowAperturesPropertyIndex = 5;
+ private const int storageStructureAreaPropertyIndex = 6;
+ private const int allowedLevelIncreaseStoragePropertyIndex = 7;
+ private const int criticalOvertoppingDischargePropertyIndex = 9;
+ private const int failureProbabilityStructureWithErosionPropertyIndex = 10;
+ private const int foreshoreProfilePropertyIndex = 11;
+ private const int useBreakWaterPropertyIndex = 12;
+ private const int useForeshorePropertyIndex = 13;
+ private const int modelFactorSuperCriticalFlowPropertyIndex = 14;
+ private const int hydraulicBoundaryLocationPropertyIndex = 15;
+ private const int stormDurationPropertyIndex = 16;
+ private const int deviationWaveDirectionPropertyIndex = 17;
+
+ ///
+ /// Creates a new instance of the class.
+ ///
+ public ClosingStructuresInputContextProperties()
+ : base(new ConstructionProperties
+ {
+ StructurePropertyIndex = structurePropertyIndex,
+ StructureLocationPropertyIndex = structureLocationPropertyIndex,
+ StructureNormalOrientationPropertyIndex = structureNormalOrientationPropertyIndex,
+ FlowWidthAtBottomProtectionPropertyIndex = flowWidthAtBottomProtectionPropertyIndex,
+ WidthFlowAperturesPropertyIndex = widthFlowAperturesPropertyIndex,
+ StorageStructureAreaPropertyIndex = storageStructureAreaPropertyIndex,
+ AllowedLevelIncreaseStoragePropertyIndex = allowedLevelIncreaseStoragePropertyIndex,
+ CriticalOvertoppingDischargePropertyIndex = criticalOvertoppingDischargePropertyIndex,
+ FailureProbabilityStructureWithErosionPropertyIndex = failureProbabilityStructureWithErosionPropertyIndex,
+ ForeshoreProfilePropertyIndex = foreshoreProfilePropertyIndex,
+ UseBreakWaterPropertyIndex = useBreakWaterPropertyIndex,
+ UseForeshorePropertyIndex = useForeshorePropertyIndex,
+ ModelFactorSuperCriticalFlowPropertyIndex = modelFactorSuperCriticalFlowPropertyIndex,
+ HydraulicBoundaryLocationPropertyIndex = hydraulicBoundaryLocationPropertyIndex,
+ StormDurationPropertyIndex = stormDurationPropertyIndex
+ }) { }
+
+ #region Schematization
+
+
+ #endregion
+
+ #region Hydraulic data
+
+ [PropertyOrder(deviationWaveDirectionPropertyIndex)]
+ [ResourcesCategory(typeof(RingtoetsCommonFormsResources), "Categories_HydraulicData")]
+ [ResourcesDisplayName(typeof(RingtoetsCommonFormsResources), "DeviationWaveDirection_DisplayName")]
+ [ResourcesDescription(typeof(RingtoetsCommonFormsResources), "DeviationWaveDirection_Description")]
+ public RoundedDouble DeviationWaveDirection
+ {
+ get
+ {
+ return data.WrappedData.DeviationWaveDirection;
+ }
+ set
+ {
+ data.WrappedData.DeviationWaveDirection = value;
+ data.WrappedData.NotifyObservers();
+ }
+ }
+
+ #endregion
+
+ public override IEnumerable GetAvailableForeshoreProfiles()
+ {
+ return data.FailureMechanism.ForeshoreProfiles;
+ }
+
+ public override IEnumerable GetAvailableStructures()
+ {
+ return data.FailureMechanism.ClosingStructures;
+ }
+
+ protected override void AfterSettingStructure()
+ {
+
+ }
+ }
+}
Index: Ringtoets/ClosingStructures/src/Ringtoets.ClosingStructures.Forms/Ringtoets.ClosingStructures.Forms.csproj
===================================================================
diff -u -r2ec06c41e23172aee5fba6f3b6588486c922514b -rf7a04cbe5e015450af38a8983a4c57c5022722f2
--- Ringtoets/ClosingStructures/src/Ringtoets.ClosingStructures.Forms/Ringtoets.ClosingStructures.Forms.csproj (.../Ringtoets.ClosingStructures.Forms.csproj) (revision 2ec06c41e23172aee5fba6f3b6588486c922514b)
+++ Ringtoets/ClosingStructures/src/Ringtoets.ClosingStructures.Forms/Ringtoets.ClosingStructures.Forms.csproj (.../Ringtoets.ClosingStructures.Forms.csproj) (revision f7a04cbe5e015450af38a8983a4c57c5022722f2)
@@ -57,6 +57,7 @@
True
Resources.resx
+
UserControl
Index: Ringtoets/HeightStructures/src/Ringtoets.HeightStructures.Forms/PropertyClasses/HeightStructuresInputContextProperties.cs
===================================================================
diff -u -rcad219225ee11e816a86a0763d7b888a4d49d8a0 -rf7a04cbe5e015450af38a8983a4c57c5022722f2
--- Ringtoets/HeightStructures/src/Ringtoets.HeightStructures.Forms/PropertyClasses/HeightStructuresInputContextProperties.cs (.../HeightStructuresInputContextProperties.cs) (revision cad219225ee11e816a86a0763d7b888a4d49d8a0)
+++ Ringtoets/HeightStructures/src/Ringtoets.HeightStructures.Forms/PropertyClasses/HeightStructuresInputContextProperties.cs (.../HeightStructuresInputContextProperties.cs) (revision f7a04cbe5e015450af38a8983a4c57c5022722f2)
@@ -57,6 +57,9 @@
private const int stormDurationPropertyIndex = 16;
private const int deviationWaveDirectionPropertyIndex = 17;
+ ///
+ /// Creates a new instance of the class.
+ ///
public HeightStructuresInputContextProperties() : base(new ConstructionProperties
{
StructurePropertyIndex = structurePropertyIndex,