Index: DamEngine/branches/DamEngine 19.3/src/Deltares.DamEngine.Data/General/Dike.cs =================================================================== diff -u -r3736 -r3737 --- DamEngine/branches/DamEngine 19.3/src/Deltares.DamEngine.Data/General/Dike.cs (.../DamEngine 19.3 wrong/src/Deltares.DamEngine.Data/General/Dike.cs) (revision 3736) +++ DamEngine/branches/DamEngine 19.3/src/Deltares.DamEngine.Data/General/Dike.cs (.../DamEngine 19.3/src/Deltares.DamEngine.Data/General/Dike.cs) (revision 3737) @@ -193,7 +193,7 @@ } } - public void Validate(bool isOperational) + public void Validate() { if (Locations == null || Locations.Count < 1) { @@ -211,45 +211,10 @@ throw new SurfaceLineException(validationResults[0].Text); } } - - if (isOperational) - { - ValidateOperationalProject(location); - } } } - private static void ValidateOperationalProject(Location location) - { - if (location.Scenarios.Count < 1) - { - throw new DikeException("Location " + location.Name + - " has no scenarios, at least one scenario is required."); - } - - if (location.Scenarios.Count > 1) - { - throw new DikeException(string.Format( - "For Operational (DamLive), location {0} has {1} scenarios but only one is allowed!", - location.Name, location.Scenarios.Count)); - } - - if (location.SensorLocation != null) - { - foreach (var sensor in location.SensorLocation.SensorGroup.SensorArray) - { - if (sensor.RelativeLocation < 0) - { - throw new DikeException(string.Format( - "For Operational (DamLive), location {0} has a sensor ({1}) which can not not be relative '+ " + - "to the starting point (0) as its coordinate {2} is < 0 .", - location.Name, sensor.Name, sensor.RelativeLocation)); - } - } - } - } - - + /// /// Adapt data so it is consistent ///