Index: Ringtoets/Common/src/Ringtoets.Common.Forms/Ringtoets.Common.Forms.csproj
===================================================================
diff -u -rcc29842d465a90a90243c6e3476c62722e4ffbe1 -ra34b42713979b77c7a4875d100bf70cb272b3014
--- Ringtoets/Common/src/Ringtoets.Common.Forms/Ringtoets.Common.Forms.csproj (.../Ringtoets.Common.Forms.csproj) (revision cc29842d465a90a90243c6e3476c62722e4ffbe1)
+++ Ringtoets/Common/src/Ringtoets.Common.Forms/Ringtoets.Common.Forms.csproj (.../Ringtoets.Common.Forms.csproj) (revision a34b42713979b77c7a4875d100bf70cb272b3014)
@@ -100,6 +100,8 @@
Form
+
+
Index: Ringtoets/Common/src/Ringtoets.Common.Forms/UITypeEditors/ForeshoreProfileEditor.cs
===================================================================
diff -u
--- Ringtoets/Common/src/Ringtoets.Common.Forms/UITypeEditors/ForeshoreProfileEditor.cs (revision 0)
+++ Ringtoets/Common/src/Ringtoets.Common.Forms/UITypeEditors/ForeshoreProfileEditor.cs (revision a34b42713979b77c7a4875d100bf70cb272b3014)
@@ -0,0 +1,53 @@
+// 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 System.ComponentModel;
+using Core.Common.Utils.Reflection;
+using Ringtoets.Common.Data.DikeProfiles;
+
+namespace Ringtoets.Common.Forms.UITypeEditors
+{
+ ///
+ /// This class defines a drop down list edit-control from which the user can select a
+ /// foreshore profile from a collection.
+ ///
+ public class ForeshoreProfileEditor : SelectionEditor
+ {
+ ///
+ /// Creates a new instance of .
+ ///
+ public ForeshoreProfileEditor()
+ {
+ DisplayMember = TypeUtils.GetMemberName(fp => fp.Name);
+ }
+
+ protected override IEnumerable GetAvailableOptions(ITypeDescriptorContext context)
+ {
+ return GetPropertiesObject(context).GetAvailableForeshoreProfiles();
+ }
+
+ protected override ForeshoreProfile GetCurrentOption(ITypeDescriptorContext context)
+ {
+ return GetPropertiesObject(context).ForeshoreProfile;
+ }
+ }
+}
\ No newline at end of file
Index: Ringtoets/Common/src/Ringtoets.Common.Forms/UITypeEditors/HydraulicBoundaryLocationEditor.cs
===================================================================
diff -u
--- Ringtoets/Common/src/Ringtoets.Common.Forms/UITypeEditors/HydraulicBoundaryLocationEditor.cs (revision 0)
+++ Ringtoets/Common/src/Ringtoets.Common.Forms/UITypeEditors/HydraulicBoundaryLocationEditor.cs (revision a34b42713979b77c7a4875d100bf70cb272b3014)
@@ -0,0 +1,53 @@
+// 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 System.ComponentModel;
+using Core.Common.Utils.Reflection;
+using Ringtoets.HydraRing.Data;
+
+namespace Ringtoets.Common.Forms.UITypeEditors
+{
+ ///
+ /// This class defines a drop down list edit-control from which the user can select a
+ /// hydraulic boundary location from a collection.
+ ///
+ public class HydraulicBoundaryLocationEditor : SelectionEditor
+ {
+ ///
+ /// Creates a new instance of .
+ ///
+ public HydraulicBoundaryLocationEditor()
+ {
+ DisplayMember = TypeUtils.GetMemberName(hbl => hbl.Name);
+ }
+
+ protected override IEnumerable GetAvailableOptions(ITypeDescriptorContext context)
+ {
+ return GetPropertiesObject(context).GetAvailableHydraulicBoundaryLocations();
+ }
+
+ protected override HydraulicBoundaryLocation GetCurrentOption(ITypeDescriptorContext context)
+ {
+ return GetPropertiesObject(context).HydraulicBoundaryLocation;
+ }
+ }
+}
\ No newline at end of file