Index: Riskeer/MacroStabilityInwards/src/Riskeer.MacroStabilityInwards.Forms/PropertyClasses/MacroStabilityInwardsWaterStressesProperties.cs =================================================================== diff -u -rae1fbf8ec3aba9623ab57d35b1aeea9c509789ce -r6bc00629e040056b2b26403394091870ce77df78 --- Riskeer/MacroStabilityInwards/src/Riskeer.MacroStabilityInwards.Forms/PropertyClasses/MacroStabilityInwardsWaterStressesProperties.cs (.../MacroStabilityInwardsWaterStressesProperties.cs) (revision ae1fbf8ec3aba9623ab57d35b1aeea9c509789ce) +++ Riskeer/MacroStabilityInwards/src/Riskeer.MacroStabilityInwards.Forms/PropertyClasses/MacroStabilityInwardsWaterStressesProperties.cs (.../MacroStabilityInwardsWaterStressesProperties.cs) (revision 6bc00629e040056b2b26403394091870ce77df78) @@ -146,6 +146,7 @@ } [PropertyOrder(adjustPhreaticLine3And4ForUpliftPropertyIndex)] + [DynamicReadOnly] [ResourcesCategory(typeof(Resources), nameof(Resources.Waterstresses_DisplayName))] [ResourcesDisplayName(typeof(Resources), nameof(Resources.AdjustPhreaticLine3And4ForUplift_DisplayName))] [ResourcesDescription(typeof(Resources), nameof(Resources.AdjustPhreaticLine3And4ForUplift_Description))] @@ -162,6 +163,7 @@ } [PropertyOrder(leakageLengthOutwardsPhreaticLine3PropertyIndex)] + [DynamicReadOnly] [ResourcesCategory(typeof(Resources), nameof(Resources.Waterstresses_DisplayName))] [ResourcesDisplayName(typeof(Resources), nameof(Resources.LeakageLengthOutwardsPhreaticLine3_DisplayName))] [ResourcesDescription(typeof(Resources), nameof(Resources.LeakageLengthOutwardsPhreaticLine3_Description))] @@ -178,6 +180,7 @@ } [PropertyOrder(leakageLengthInwardsPhreaticLine3PropertyIndex)] + [DynamicReadOnly] [ResourcesCategory(typeof(Resources), nameof(Resources.Waterstresses_DisplayName))] [ResourcesDisplayName(typeof(Resources), nameof(Resources.LeakageLengthInwardsPhreaticLine3_DisplayName))] [ResourcesDescription(typeof(Resources), nameof(Resources.LeakageLengthInwardsPhreaticLine3_Description))] @@ -194,6 +197,7 @@ } [PropertyOrder(leakageLengthOutwardsPhreaticLine4PropertyIndex)] + [DynamicReadOnly] [ResourcesCategory(typeof(Resources), nameof(Resources.Waterstresses_DisplayName))] [ResourcesDisplayName(typeof(Resources), nameof(Resources.LeakageLengthOutwardsPhreaticLine4_DisplayName))] [ResourcesDescription(typeof(Resources), nameof(Resources.LeakageLengthOutwardsPhreaticLine4_Description))] @@ -210,6 +214,7 @@ } [PropertyOrder(leakageLengthInwardsPhreaticLine4PropertyIndex)] + [DynamicReadOnly] [ResourcesCategory(typeof(Resources), nameof(Resources.Waterstresses_DisplayName))] [ResourcesDisplayName(typeof(Resources), nameof(Resources.LeakageLengthInwardsPhreaticLine4_DisplayName))] [ResourcesDescription(typeof(Resources), nameof(Resources.LeakageLengthInwardsPhreaticLine4_Description))] @@ -226,6 +231,7 @@ } [PropertyOrder(piezometricHeadPhreaticLine2OutwardsPropertyIndex)] + [DynamicReadOnly] [ResourcesCategory(typeof(Resources), nameof(Resources.Waterstresses_DisplayName))] [ResourcesDisplayName(typeof(Resources), nameof(Resources.PiezometricHeadPhreaticLine2Outwards_DisplayName))] [ResourcesDescription(typeof(Resources), nameof(Resources.PiezometricHeadPhreaticLine2Outwards_Description))] @@ -242,6 +248,7 @@ } [PropertyOrder(piezometricHeadPhreaticLine2InwardsPropertyIndex)] + [DynamicReadOnly] [ResourcesCategory(typeof(Resources), nameof(Resources.Waterstresses_DisplayName))] [ResourcesDisplayName(typeof(Resources), nameof(Resources.PiezometricHeadPhreaticLine2Inwards_DisplayName))] [ResourcesDescription(typeof(Resources), nameof(Resources.PiezometricHeadPhreaticLine2Inwards_Description))] Index: Riskeer/MacroStabilityInwards/test/Riskeer.MacroStabilityInwards.Forms.Test/PropertyClasses/MacroStabilityInwardsWaterStressesPropertiesTest.cs =================================================================== diff -u -rae1fbf8ec3aba9623ab57d35b1aeea9c509789ce -r6bc00629e040056b2b26403394091870ce77df78 --- Riskeer/MacroStabilityInwards/test/Riskeer.MacroStabilityInwards.Forms.Test/PropertyClasses/MacroStabilityInwardsWaterStressesPropertiesTest.cs (.../MacroStabilityInwardsWaterStressesPropertiesTest.cs) (revision ae1fbf8ec3aba9623ab57d35b1aeea9c509789ce) +++ Riskeer/MacroStabilityInwards/test/Riskeer.MacroStabilityInwards.Forms.Test/PropertyClasses/MacroStabilityInwardsWaterStressesPropertiesTest.cs (.../MacroStabilityInwardsWaterStressesPropertiesTest.cs) (revision 6bc00629e040056b2b26403394091870ce77df78) @@ -23,6 +23,7 @@ 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.TestUtil; using NUnit.Framework; @@ -177,48 +178,55 @@ "Minimale hoogte van de freatische lijn onder kruin binnentalud."); PropertyDescriptor adjustPhreaticLine3And4ForUpliftProperty = dynamicProperties[expecteAdjustPhreaticLine3And4ForUpliftPropertyIndex]; + Assert.NotNull(adjustPhreaticLine3And4ForUpliftProperty.Attributes[typeof(DynamicReadOnlyAttribute)]); PropertiesTestHelper.AssertRequiredPropertyDescriptorProperties( adjustPhreaticLine3And4ForUpliftProperty, waterStressesCategory, "Corrigeer PL 3 en PL 4 voor opbarsten", "Corrigeer de stijghoogte in watervoerende zandlaag en tussenzandlaag voor opbarsten?"); PropertyDescriptor leakageLengthOutwardsPhreaticLine3Property = dynamicProperties[expectedLeakageLengthOutwardsPhreaticLine3PropertyIndex]; + Assert.NotNull(leakageLengthOutwardsPhreaticLine3Property.Attributes[typeof(DynamicReadOnlyAttribute)]); PropertiesTestHelper.AssertRequiredPropertyDescriptorProperties( leakageLengthOutwardsPhreaticLine3Property, waterStressesCategory, "Leklengte buitenwaarts PL 3 [m]", "Lengtemaat die uitdrukking geeft aan de afstand waarover de stijghoogte verloopt in de diepe watervoerende zandlaag ter hoogte van het voorland."); PropertyDescriptor leakageLengthInwardsPhreaticLine3Property = dynamicProperties[expectedLeakageLengthInwardsPhreaticLine3PropertyIndex]; + Assert.NotNull(leakageLengthInwardsPhreaticLine3Property.Attributes[typeof(DynamicReadOnlyAttribute)]); PropertiesTestHelper.AssertRequiredPropertyDescriptorProperties( leakageLengthInwardsPhreaticLine3Property, waterStressesCategory, "Leklengte binnenwaarts PL 3 [m]", "Lengtemaat die uitdrukking geeft aan de afstand waarover de stijghoogte verloopt in de diepe watervoerende zandlaag ter hoogte van het achterland."); PropertyDescriptor leakageLengthOutwardsPhreaticLine4Property = dynamicProperties[expectedLeakageLengthOutwardsPhreaticLine4PropertyIndex]; + Assert.NotNull(leakageLengthOutwardsPhreaticLine4Property.Attributes[typeof(DynamicReadOnlyAttribute)]); PropertiesTestHelper.AssertRequiredPropertyDescriptorProperties( leakageLengthOutwardsPhreaticLine4Property, waterStressesCategory, "Leklengte buitenwaarts PL 4 [m]", "Lengtemaat die uitdrukking geeft aan de afstand waarover de stijghoogte verloopt in de tussenzandlaag ter hoogte van het voorland."); PropertyDescriptor leakageLengthInwardsPhreaticLine4Property = dynamicProperties[expectedLeakageLengthInwardsPhreaticLine4PropertyIndex]; + Assert.NotNull(leakageLengthInwardsPhreaticLine4Property.Attributes[typeof(DynamicReadOnlyAttribute)]); PropertiesTestHelper.AssertRequiredPropertyDescriptorProperties( leakageLengthInwardsPhreaticLine4Property, waterStressesCategory, "Leklengte binnenwaarts PL 4 [m]", "Lengtemaat die uitdrukking geeft aan de afstand waarover de stijghoogte verloopt in de tussenzandlaag ter hoogte van het achterland."); PropertyDescriptor piezometricHeadPhreaticLine2OutwardsProperty = dynamicProperties[expectedPiezometricHeadPhreaticLine2OutwardsPropertyIndex]; + Assert.NotNull(piezometricHeadPhreaticLine2OutwardsProperty.Attributes[typeof(DynamicReadOnlyAttribute)]); PropertiesTestHelper.AssertRequiredPropertyDescriptorProperties( piezometricHeadPhreaticLine2OutwardsProperty, waterStressesCategory, "Stijghoogte PL 2 buitenwaarts [m+NAP]", "Stijghoogte in de indringingslaag buitenwaarts."); PropertyDescriptor piezometricHeadPhreaticLine2InwardsProperty = dynamicProperties[expectedPiezometricHeadPhreaticLine2InwardsPropertyIndex]; + Assert.NotNull(piezometricHeadPhreaticLine2InwardsProperty.Attributes[typeof(DynamicReadOnlyAttribute)]); PropertiesTestHelper.AssertRequiredPropertyDescriptorProperties( piezometricHeadPhreaticLine2InwardsProperty, waterStressesCategory,