Index: Ringtoets/Common/src/Ringtoets.Common.Forms/PropertyClasses/LogNormalDistributionProperties.cs
===================================================================
diff -u -r816ada789a47f320a798b9a66059fbfec54947ff -r26359a31a29af21b6690cacd9b810b1565af9e4b
--- Ringtoets/Common/src/Ringtoets.Common.Forms/PropertyClasses/LogNormalDistributionProperties.cs (.../LogNormalDistributionProperties.cs) (revision 816ada789a47f320a798b9a66059fbfec54947ff)
+++ Ringtoets/Common/src/Ringtoets.Common.Forms/PropertyClasses/LogNormalDistributionProperties.cs (.../LogNormalDistributionProperties.cs) (revision 26359a31a29af21b6690cacd9b810b1565af9e4b)
@@ -19,9 +19,9 @@
// Stichting Deltares and remain full property of Stichting Deltares at all times.
// All rights reserved.
-using System.ComponentModel;
using Core.Common.Base;
using Core.Common.Base.Data;
+using Core.Common.Gui.Attributes;
using Core.Common.Gui.PropertyBag;
using Core.Common.Utils.Attributes;
using Ringtoets.Common.Data.Probabilistics;
@@ -33,14 +33,21 @@
/// An implementation for
/// properties.
///
- [TypeConverter(typeof(ExpandableObjectConverter))]
public class LogNormalDistributionProperties : DistributionProperties
{
///
+ /// Creates a new read-only instance of .
+ ///
+ public LogNormalDistributionProperties() : this(null, DistributionPropertiesReadOnly.All) {}
+
+ ///
/// Creates a new instance of .
///
/// Object to observe to notify upon change.
- public LogNormalDistributionProperties(IObservable observerable)
+ /// Sets if and/or
+ /// should be marked read-only.
+ public LogNormalDistributionProperties(IObservable observerable, DistributionPropertiesReadOnly propertiesReadOnly)
+ : base(propertiesReadOnly)
{
Observerable = observerable;
}
@@ -49,7 +56,7 @@
{
get
{
- return "Lognormaal";
+ return Resources.DistributionType_LogNormal;
}
}
@@ -66,6 +73,7 @@
}
}
+ [DynamicReadOnly]
[ResourcesDescription(typeof(Resources), "LogNormalDistribution_StandardDeviation_Description")]
public override RoundedDouble StandardDeviation
{