Index: DamClients/DamUI/trunk/src/DamClientsLibrary/Deltares.Dam.Data/DamProject.cs
===================================================================
diff -u -r2460 -r2529
--- DamClients/DamUI/trunk/src/DamClientsLibrary/Deltares.Dam.Data/DamProject.cs (.../DamProject.cs) (revision 2460)
+++ DamClients/DamUI/trunk/src/DamClientsLibrary/Deltares.Dam.Data/DamProject.cs (.../DamProject.cs) (revision 2529)
@@ -316,67 +316,9 @@
private void UpdateForOlderProjects()
{
UpdateMStabParametersSlipCircleDefinition();
- UpdateScenariosForLocations();
}
///
- /// Updates the scenarios for locations.
- /// If they are not available in Design mode, the values should be taken from location
- ///
- private void UpdateScenariosForLocations()
- {
- if (this.DamProjectData.DamProjectType == DamProjectType.Design)
- {
- foreach (Location location in damProjectData.Locations)
- {
- foreach (Scenario scenario in location.Scenarios)
- {
- if (scenario.UsePlLineOffsetBelowDikeCrestMiddle == null)
- {
- scenario.UsePlLineOffsetBelowDikeCrestMiddle = location.UsePlLineOffsetBelowDikeCrestMiddle;
- }
- if (scenario.PlLineOffsetBelowDikeCrestMiddle == null)
- {
- scenario.PlLineOffsetBelowDikeCrestMiddle = location.PlLineOffsetBelowDikeCrestMiddle;
- }
- if (scenario.PlLineOffsetBelowDikeToeAtPolder == null)
- {
- scenario.PlLineOffsetBelowDikeToeAtPolder = location.PlLineOffsetBelowDikeToeAtPolder;
- }
- if (scenario.PlLineOffsetBelowDikeTopAtPolder == null)
- {
- scenario.PlLineOffsetBelowDikeTopAtPolder = location.PlLineOffsetBelowDikeTopAtPolder;
- }
- if (scenario.PlLineOffsetBelowDikeTopAtRiver == null)
- {
- scenario.PlLineOffsetBelowDikeTopAtRiver = location.PlLineOffsetBelowDikeTopAtRiver;
- }
- if (scenario.PlLineOffsetBelowShoulderBaseInside == null)
- {
- scenario.PlLineOffsetBelowShoulderBaseInside = location.PlLineOffsetBelowShoulderBaseInside;
- }
- if (scenario.UsePlLineOffsetFactorBelowShoulderCrest == null)
- {
- scenario.UsePlLineOffsetFactorBelowShoulderCrest = location.UsePlLineOffsetFactorBelowShoulderCrest;
- }
- if (scenario.PlLineOffsetFactorBelowShoulderCrest == null)
- {
- scenario.PlLineOffsetFactorBelowShoulderCrest = location.PlLineOffsetFactorBelowShoulderCrest;
- }
- if (scenario.HeadPl3 == null)
- {
- scenario.HeadPl3 = location.HeadPl3;
- }
- if (scenario.HeadPl4 == null)
- {
- scenario.HeadPl4 = location.HeadPl4;
- }
- }
- }
- }
- }
-
- ///
/// Updates the soil properties to the values in the soil database, to avoid discrepancies.
/// If the use of the soil database is not necessary anymore (and the soil parameters can be edited in the UI)
/// then this method is not needed anymore.