Index: Ringtoets/GrassCoverErosionOutwards/src/Ringtoets.GrassCoverErosionOutwards.Data/GrassCoverErosionOutwardsFailureMechanism.cs =================================================================== diff -u -r867a372d86ee5c12205fe2cbebb94f11044b1a91 -rc70f37a3f3cf337a828e1eee6da36d1cabd97b3f --- Ringtoets/GrassCoverErosionOutwards/src/Ringtoets.GrassCoverErosionOutwards.Data/GrassCoverErosionOutwardsFailureMechanism.cs (.../GrassCoverErosionOutwardsFailureMechanism.cs) (revision 867a372d86ee5c12205fe2cbebb94f11044b1a91) +++ Ringtoets/GrassCoverErosionOutwards/src/Ringtoets.GrassCoverErosionOutwards.Data/GrassCoverErosionOutwardsFailureMechanism.cs (.../GrassCoverErosionOutwardsFailureMechanism.cs) (revision c70f37a3f3cf337a828e1eee6da36d1cabd97b3f) @@ -20,6 +20,7 @@ // All rights reserved. using System.Collections.Generic; +using Core.Common.Base; using Ringtoets.Common.Data.Calculation; using Ringtoets.Common.Data.FailureMechanism; using Ringtoets.GrassCoverErosionOutwards.Data.Properties; @@ -46,7 +47,7 @@ sectionResults = new List(); GeneralInput = new GeneralGrassCoverErosionOutwardsInput(); HydraulicBoundariesCalculationGroup = new CalculationGroup(RingtoetsCommonDataResources.FailureMechanism_Calculations_DisplayName, false); - GrassCoverErosionOutwardsHydraulicBoundaryLocations = new List(); + GrassCoverErosionOutwardsHydraulicBoundaryLocations = new ObservableList(); } public override IEnumerable Calculations @@ -63,6 +64,24 @@ public GeneralGrassCoverErosionOutwardsInput GeneralInput { get; private set; } /// + /// Gets an of . + /// + public ObservableList GrassCoverErosionOutwardsHydraulicBoundaryLocations { get; private set; } + + /// + /// Gets the container of all hydraulic boundary calculations. + /// + public CalculationGroup HydraulicBoundariesCalculationGroup { get; private set; } + + public IEnumerable SectionResults + { + get + { + return sectionResults; + } + } + + /// /// Sets based upon the . /// /// An of . @@ -78,26 +97,9 @@ { GrassCoverErosionOutwardsHydraulicBoundaryLocations.Add(new GrassCoverErosionOutwardsHydraulicBoundaryLocation(hydraulicBoundaryLocation)); } + GrassCoverErosionOutwardsHydraulicBoundaryLocations.NotifyObservers(); } - /// - /// Gets an of . - /// - public IList GrassCoverErosionOutwardsHydraulicBoundaryLocations { get; private set; } - - /// - /// Gets the container of all hydraulic boundary calculations. - /// - public CalculationGroup HydraulicBoundariesCalculationGroup { get; private set; } - - public IEnumerable SectionResults - { - get - { - return sectionResults; - } - } - public override void AddSection(FailureMechanismSection section) { base.AddSection(section); Index: Ringtoets/GrassCoverErosionOutwards/src/Ringtoets.GrassCoverErosionOutwards.Forms/PresentationObjects/HydraulicBoundariesGroupContext.cs =================================================================== diff -u -r1f58fe3574c5bad0bee42c6e02f679a718335ab2 -rc70f37a3f3cf337a828e1eee6da36d1cabd97b3f --- Ringtoets/GrassCoverErosionOutwards/src/Ringtoets.GrassCoverErosionOutwards.Forms/PresentationObjects/HydraulicBoundariesGroupContext.cs (.../HydraulicBoundariesGroupContext.cs) (revision 1f58fe3574c5bad0bee42c6e02f679a718335ab2) +++ Ringtoets/GrassCoverErosionOutwards/src/Ringtoets.GrassCoverErosionOutwards.Forms/PresentationObjects/HydraulicBoundariesGroupContext.cs (.../HydraulicBoundariesGroupContext.cs) (revision c70f37a3f3cf337a828e1eee6da36d1cabd97b3f) @@ -21,35 +21,21 @@ using System; using Core.Common.Controls.PresentationObjects; -using Ringtoets.Common.Data.AssessmentSection; -using Ringtoets.Common.Data.Calculation; +using Ringtoets.GrassCoverErosionOutwards.Data; namespace Ringtoets.GrassCoverErosionOutwards.Forms.PresentationObjects { /// /// Presentation object for Hydraulic boundary locations and calculations. /// - public class HydraulicBoundariesGroupContext : ObservableWrappedObjectContextBase + public class HydraulicBoundariesGroupContext : ObservableWrappedObjectContextBase { /// /// Initializes a new instance of the class. /// - /// The assessment section which the context belongs to. - /// The instance wrapped by this context object. + /// The failure mechanism which the context belongs to. /// Thrown when any input argument is null. - public HydraulicBoundariesGroupContext(IAssessmentSection assessmentSection, CalculationGroup calculationGroup) - : base(assessmentSection) - { - if (calculationGroup == null) - { - throw new ArgumentNullException("calculationGroup"); - } - HydraulicBoundariesCalculationGroup = calculationGroup; - } - - /// - /// Gets the hydraulic boundaries calculation groups. - /// - public CalculationGroup HydraulicBoundariesCalculationGroup { get; private set; } + public HydraulicBoundariesGroupContext(GrassCoverErosionOutwardsFailureMechanism failureMechanism) + : base(failureMechanism) {} } } \ No newline at end of file Index: Ringtoets/GrassCoverErosionOutwards/src/Ringtoets.GrassCoverErosionOutwards.Forms/PresentationObjects/SectionSpecificWaterLevelLocationsContext.cs =================================================================== diff -u --- Ringtoets/GrassCoverErosionOutwards/src/Ringtoets.GrassCoverErosionOutwards.Forms/PresentationObjects/SectionSpecificWaterLevelLocationsContext.cs (revision 0) +++ Ringtoets/GrassCoverErosionOutwards/src/Ringtoets.GrassCoverErosionOutwards.Forms/PresentationObjects/SectionSpecificWaterLevelLocationsContext.cs (revision c70f37a3f3cf337a828e1eee6da36d1cabd97b3f) @@ -0,0 +1,45 @@ +// 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; +using System.Collections; +using Core.Common.Base; +using Core.Common.Controls.PresentationObjects; +using Ringtoets.GrassCoverErosionOutwards.Data; +using Ringtoets.HydraRing.Data; + +namespace Ringtoets.GrassCoverErosionOutwards.Forms.PresentationObjects +{ + /// + /// Presentation object for all data required to configure an enumeration of + /// for water level at intersection probability calculations. + /// + public class SectionSpecificWaterLevelLocationsContext : ObservableWrappedObjectContextBase> + { + /// + /// Creates a new instance of . + /// + /// The of the context belongs to. + /// Thrown when is null. + public SectionSpecificWaterLevelLocationsContext(ObservableList wrappedLocations) + : base(wrappedLocations) {} + } +} \ No newline at end of file Fisheye: Tag fa57b44c0603a332adc76bee0edd4e42f89e122c refers to a dead (removed) revision in file `Ringtoets/GrassCoverErosionOutwards/src/Ringtoets.GrassCoverErosionOutwards.Forms/Properties/Resources.Designer.cs'. Fisheye: No comparison available. Pass `N' to diff? Fisheye: Tag fa57b44c0603a332adc76bee0edd4e42f89e122c refers to a dead (removed) revision in file `Ringtoets/GrassCoverErosionOutwards/src/Ringtoets.GrassCoverErosionOutwards.Forms/Properties/Resources.resx'. Fisheye: No comparison available. Pass `N' to diff? Index: Ringtoets/GrassCoverErosionOutwards/src/Ringtoets.GrassCoverErosionOutwards.Forms/Ringtoets.GrassCoverErosionOutwards.Forms.csproj =================================================================== diff -u -rc43715cf3e6dce0c427b10c4852d5ae54e6d668d -rc70f37a3f3cf337a828e1eee6da36d1cabd97b3f --- Ringtoets/GrassCoverErosionOutwards/src/Ringtoets.GrassCoverErosionOutwards.Forms/Ringtoets.GrassCoverErosionOutwards.Forms.csproj (.../Ringtoets.GrassCoverErosionOutwards.Forms.csproj) (revision c43715cf3e6dce0c427b10c4852d5ae54e6d668d) +++ Ringtoets/GrassCoverErosionOutwards/src/Ringtoets.GrassCoverErosionOutwards.Forms/Ringtoets.GrassCoverErosionOutwards.Forms.csproj (.../Ringtoets.GrassCoverErosionOutwards.Forms.csproj) (revision c70f37a3f3cf337a828e1eee6da36d1cabd97b3f) @@ -43,6 +43,12 @@ + + + True + True + Resources.resx + @@ -86,12 +92,23 @@ Ringtoets.Common.Forms False + + {70F8CC9C-5BC8-4FB2-B201-EAE7FA8088C2} + Ringtoets.HydraRing.Data + False + {E7225477-577F-4A17-B7EC-6721158E1543} Ringtoets.GrassCoverErosionOutwards.Data False + + + PublicResXFileCodeGenerator + Resources.Designer.cs + +