Index: Ringtoets/Piping/src/Ringtoets.Piping.Forms/PropertyClasses/PipingInputContextProperties.cs =================================================================== diff -u -r94417e55fa4f44b35c8b9876c6423a94631df967 -r428346aca4810ed68d8778943246f581cb1a4386 --- Ringtoets/Piping/src/Ringtoets.Piping.Forms/PropertyClasses/PipingInputContextProperties.cs (.../PipingInputContextProperties.cs) (revision 94417e55fa4f44b35c8b9876c6423a94631df967) +++ Ringtoets/Piping/src/Ringtoets.Piping.Forms/PropertyClasses/PipingInputContextProperties.cs (.../PipingInputContextProperties.cs) (revision 428346aca4810ed68d8778943246f581cb1a4386) @@ -23,10 +23,9 @@ using System.Collections.Generic; using System.ComponentModel; using System.Drawing.Design; -using System.Reflection; using Core.Common.Gui.PropertyBag; using Core.Common.Utils.Attributes; - +using Ringtoets.HydraRing.Data; using Ringtoets.Piping.Calculation; using Ringtoets.Piping.Data; using Ringtoets.Piping.Data.Probabilistics; @@ -39,6 +38,121 @@ { public class PipingInputContextProperties : ObjectProperties { + /// + /// Gets the available surface lines on . + /// + public IEnumerable GetAvailableSurfaceLines() + { + return data.AvailablePipingSurfaceLines; + } + + /// + /// Gets the available soil profiles on . + /// + public IEnumerable GetAvailableSoilProfiles() + { + return data.AvailablePipingSoilProfiles; + } + + /// + /// Gets the available hydraulic boundary locations on . + /// + public IEnumerable GetAvailableHydraulicBoundaryLocations() + { + return data.AvailableHydraulicBoundaryLocations; + } + + private double WaterVolumetricWeight + { + get + { + return data.WrappedData.WaterVolumetricWeight; + } + set + { + data.WrappedData.WaterVolumetricWeight = value; + data.WrappedData.NotifyObservers(); + } + } + + private double PiezometricHeadPolder + { + get + { + return data.WrappedData.PiezometricHeadPolder; + } + set + { + data.WrappedData.PiezometricHeadPolder = value; + data.WrappedData.NotifyObservers(); + } + } + + private double AssessmentLevel + { + get + { + return data.WrappedData.AssessmentLevel; + } + set + { + data.WrappedData.AssessmentLevel = value; + data.WrappedData.NotifyObservers(); + } + } + + private double PiezometricHeadExit + { + get + { + return data.WrappedData.PiezometricHeadExit; + } + set + { + data.WrappedData.PiezometricHeadExit = value; + data.WrappedData.NotifyObservers(); + } + } + + private DesignVariable DampingFactorExit + { + get + { + return PipingSemiProbabilisticDesignValueFactory.GetDampingFactorExit(data.WrappedData); + } + set + { + data.WrappedData.DampingFactorExit = value.Distribution; + data.WrappedData.NotifyObservers(); + } + } + + private DesignVariable PhreaticLevelExit + { + get + { + return PipingSemiProbabilisticDesignValueFactory.GetPhreaticLevelExit(data.WrappedData); + } + set + { + data.WrappedData.PhreaticLevelExit = value.Distribution; + data.WrappedData.NotifyObservers(); + } + } + + private DesignVariable ThicknessCoverageLayer + { + get + { + return PipingSemiProbabilisticDesignValueFactory.GetThicknessCoverageLayer(data.WrappedData); + } + set + { + data.WrappedData.ThicknessCoverageLayer = value.Distribution; + data.WrappedData.NotifyObservers(); + } + } + #region General [Editor(typeof(PipingInputContextSurfaceLineSelectionEditor), typeof(UITypeEditor))] @@ -75,6 +189,23 @@ } } + [Editor(typeof(PipingInputContextHydraulicBoundaryLocationEditor), typeof(UITypeEditor))] + [ResourcesCategory(typeof(Resources), "Categories_General")] + [ResourcesDisplayName(typeof(Resources), "PipingInput_HydraulicBoundaryLocation_DisplayName")] + [ResourcesDescription(typeof(Resources), "PipingInput_HydraulicBoundaryLocation_Description")] + public HydraulicBoundaryLocation HydraulicBoundaryLocation + { + get + { + return data.WrappedData.HydraulicBoundaryLocation; + } + set + { + data.WrappedData.HydraulicBoundaryLocation = value; + data.WrappedData.NotifyObservers(); + } + } + #endregion #region Model Factors @@ -207,7 +338,7 @@ #endregion #region Uplift - + [ResourcesCategory(typeof(Resources), "Categories_Uplift")] [ResourcesDisplayName(typeof(Resources), "PipingInput_EntryPointL_DisplayName")] [ResourcesDescription(typeof(Resources), "PipingInput_EntryPointL_Description")] @@ -597,113 +728,6 @@ } } -#endregion - - /// - /// Gets the available surface lines on . - /// - public IEnumerable GetAvailableSurfaceLines() - { - return data.AvailablePipingSurfaceLines; - } - - /// - /// Gets the available soil profiles on . - /// - public IEnumerable GetAvailableSoilProfiles() - { - return data.AvailablePipingSoilProfiles; - } - - private double WaterVolumetricWeight - { - get - { - return data.WrappedData.WaterVolumetricWeight; - } - set - { - data.WrappedData.WaterVolumetricWeight = value; - data.WrappedData.NotifyObservers(); - } - } - - private double PiezometricHeadPolder - { - get - { - return data.WrappedData.PiezometricHeadPolder; - } - set - { - data.WrappedData.PiezometricHeadPolder = value; - data.WrappedData.NotifyObservers(); - } - } - - private double AssessmentLevel - { - get - { - return data.WrappedData.AssessmentLevel; - } - set - { - data.WrappedData.AssessmentLevel = value; - data.WrappedData.NotifyObservers(); - } - } - - private double PiezometricHeadExit - { - get - { - return data.WrappedData.PiezometricHeadExit; - } - set - { - data.WrappedData.PiezometricHeadExit = value; - data.WrappedData.NotifyObservers(); - } - } - - private DesignVariable DampingFactorExit - { - get - { - return PipingSemiProbabilisticDesignValueFactory.GetDampingFactorExit(data.WrappedData); - } - set - { - data.WrappedData.DampingFactorExit = value.Distribution; - data.WrappedData.NotifyObservers(); - } - } - - private DesignVariable PhreaticLevelExit - { - get - { - return PipingSemiProbabilisticDesignValueFactory.GetPhreaticLevelExit(data.WrappedData); - } - set - { - data.WrappedData.PhreaticLevelExit = value.Distribution; - data.WrappedData.NotifyObservers(); - } - } - - private DesignVariable ThicknessCoverageLayer - { - get - { - return PipingSemiProbabilisticDesignValueFactory.GetThicknessCoverageLayer(data.WrappedData); - } - set - { - data.WrappedData.ThicknessCoverageLayer = value.Distribution; - data.WrappedData.NotifyObservers(); - } - } + #endregion } } \ No newline at end of file