Index: Ringtoets/GrassCoverErosionInwards/src/Ringtoets.GrassCoverErosionInwards.Forms/PropertyClasses/DistributionProperties.cs =================================================================== diff -u -r2a3b5c8305492fff0fa77b78fa3b2f5e9f8091a5 -reaa8b3e276e1a0a6a4d0a2f96016879d8d12d394 --- Ringtoets/GrassCoverErosionInwards/src/Ringtoets.GrassCoverErosionInwards.Forms/PropertyClasses/DistributionProperties.cs (.../DistributionProperties.cs) (revision 2a3b5c8305492fff0fa77b78fa3b2f5e9f8091a5) +++ Ringtoets/GrassCoverErosionInwards/src/Ringtoets.GrassCoverErosionInwards.Forms/PropertyClasses/DistributionProperties.cs (.../DistributionProperties.cs) (revision eaa8b3e276e1a0a6a4d0a2f96016879d8d12d394) @@ -21,7 +21,6 @@ using System; using System.ComponentModel; -using System.Globalization; using Core.Common.Base; using Core.Common.Base.Data; using Core.Common.Gui.PropertyBag; @@ -45,38 +44,38 @@ [ResourcesDisplayName(typeof(Resources), "NormalDistribution_Mean_DisplayName")] [ResourcesDescription(typeof(Resources), "NormalDistribution_Mean_Description")] - public virtual string Mean + public virtual RoundedDouble Mean { get { - return new RoundedDouble(2, data.Mean).Value.ToString(CultureInfo.InvariantCulture); + return data.Mean; } set { if (Observerable == null) { throw new ArgumentException(); } - data.Mean = new RoundedDouble(data.StandardDeviation.NumberOfDecimalPlaces, double.Parse(value, CultureInfo.InvariantCulture)); + data.Mean = new RoundedDouble(data.StandardDeviation.NumberOfDecimalPlaces, value); Observerable.NotifyObservers(); } } [ResourcesDisplayName(typeof(Resources), "NormalDistribution_StandardDeviation_DisplayName")] [ResourcesDescription(typeof(Resources), "NormalDistribution_StandardDeviation_Description")] - public virtual string StandardDeviation + public virtual RoundedDouble StandardDeviation { get { - return new RoundedDouble(2, data.StandardDeviation).Value.ToString(CultureInfo.InvariantCulture); + return data.StandardDeviation; } set { if (Observerable == null) { throw new ArgumentException(); } - data.StandardDeviation = new RoundedDouble(data.StandardDeviation.NumberOfDecimalPlaces, double.Parse(value, CultureInfo.InvariantCulture)); + data.StandardDeviation = new RoundedDouble(data.StandardDeviation.NumberOfDecimalPlaces, value); Observerable.NotifyObservers(); } }