Index: dam clients/DamUI/trunk/src/Dam/Data/DamEngineIo/FillDamUiFromXmlInput.cs =================================================================== diff -u -r811 -r852 --- dam clients/DamUI/trunk/src/Dam/Data/DamEngineIo/FillDamUiFromXmlInput.cs (.../FillDamUiFromXmlInput.cs) (revision 811) +++ dam clients/DamUI/trunk/src/Dam/Data/DamEngineIo/FillDamUiFromXmlInput.cs (.../FillDamUiFromXmlInput.cs) (revision 852) @@ -354,17 +354,26 @@ location.SlopeAdaptionStartCotangent = designOptions.SlopeAdaptionStartCotangent; location.SlopeAdaptionEndCotangent = designOptions.SlopeAdaptionEndCotangent; location.SlopeAdaptionStepCotangent = designOptions.SlopeAdaptionStepCotangent; + + location.UseNewDikeTopWidth = designOptions.NewDikeTopWidthSpecified; if (designOptions.NewDikeTopWidthSpecified) location.NewDikeTopWidth = designOptions.NewDikeTopWidth; + location.UseNewDikeSlopeInside = designOptions.NewDikeSlopeInsideSpecified; if (designOptions.NewDikeSlopeInsideSpecified) location.NewDikeSlopeInside = designOptions.NewDikeSlopeInside; + location.UseNewDikeSlopeOutside = designOptions.NewDikeSlopeOutsideSpecified; if (designOptions.NewDikeSlopeOutsideSpecified) location.NewDikeSlopeOutside = designOptions.NewDikeSlopeOutside; + location.UseNewShoulderTopSlope = designOptions.NewShoulderTopSlopeSpecified; if (designOptions.NewShoulderTopSlopeSpecified) location.NewShoulderTopSlope = designOptions.NewShoulderTopSlope; + location.UseNewShoulderBaseSlope = designOptions.NewShoulderBaseSlopeSpecified; if (designOptions.NewShoulderBaseSlopeSpecified) location.NewShoulderBaseSlope = designOptions.NewShoulderBaseSlope; + location.UseNewMaxHeightShoulderAsFraction = designOptions.NewMaxHeightShoulderAsFractionSpecified; if (designOptions.NewMaxHeightShoulderAsFractionSpecified) location.NewMaxHeightShoulderAsFraction = designOptions.NewMaxHeightShoulderAsFraction; + location.UseNewMinDistanceDikeToeStartDitch = designOptions.NewMinDistanceDikeToeStartDitchSpecified; if (designOptions.NewMinDistanceDikeToeStartDitchSpecified) location.NewMinDistanceDikeToeStartDitch = designOptions.NewMinDistanceDikeToeStartDitch; location.UseNewDitchDefinition = designOptions.UseNewDitchDefinition; if (designOptions.NewWidthDitchBottomSpecified) location.NewWidthDitchBottom = designOptions.NewWidthDitchBottom; if (designOptions.NewSlopeAngleDitchSpecified) location.NewSlopeAngleDitch = designOptions.NewSlopeAngleDitch; if (designOptions.NewDepthDitchSpecified) location.NewDepthDitch = designOptions.NewDepthDitch; + location.StabilityDesignMethod = ConversionHelper.ConvertToDamStabilityDesignMethod(designOptions.StabilityDesignMethod); } Index: dam clients/DamUI/trunk/src/Dam/Tests/DamEngineIo/FillXmlInputFromDamUiTests.cs =================================================================== diff -u -r790 -r852 --- dam clients/DamUI/trunk/src/Dam/Tests/DamEngineIo/FillXmlInputFromDamUiTests.cs (.../FillXmlInputFromDamUiTests.cs) (revision 790) +++ dam clients/DamUI/trunk/src/Dam/Tests/DamEngineIo/FillXmlInputFromDamUiTests.cs (.../FillXmlInputFromDamUiTests.cs) (revision 852) @@ -226,6 +226,14 @@ location.SlopeAdaptionStartCotangent = 10.0 * i + 0.13; location.SlopeAdaptionEndCotangent = 10.0 * i + 0.14; location.SlopeAdaptionStepCotangent = 10.0 * i + 0.15; + location.UseNewDikeTopWidth = true; + location.UseNewDikeSlopeInside = true; + location.UseNewDikeSlopeOutside = true; + location.UseNewShoulderTopSlope = true; + location.UseNewShoulderBaseSlope = true; + location.UseNewMaxHeightShoulderAsFraction = true; + location.UseNewMinDistanceDikeToeStartDitch = true; + location.UseNewDitchDefinition = true; location.NewDikeTopWidth = 10.0 * i + 0.16; location.NewDikeSlopeInside = 10.0 * i + 0.17; location.NewDikeSlopeOutside = 10.0 * i + 0.18; Index: dam clients/DamUI/trunk/src/Dam/Data/DamProjectData.cs =================================================================== diff -u -r790 -r852 --- dam clients/DamUI/trunk/src/Dam/Data/DamProjectData.cs (.../DamProjectData.cs) (revision 790) +++ dam clients/DamUI/trunk/src/Dam/Data/DamProjectData.cs (.../DamProjectData.cs) (revision 852) @@ -50,7 +50,7 @@ private List jobs = new List(); private SchematizationFactorData schematizationFactorData = new SchematizationFactorData(); private List calculations = null; // will be created and initialized in property - private List designCalculations = new List(); + private List designCalculations = null; private List schematizationFactors = null; private List dataSources = new List(); private string dataSourceEsriProjection = null; Index: dam clients/DamUI/trunk/src/Dam/Data/DamEngineIo/FillXmlInputFromDamUi.cs =================================================================== diff -u -r790 -r852 --- dam clients/DamUI/trunk/src/Dam/Data/DamEngineIo/FillXmlInputFromDamUi.cs (.../FillXmlInputFromDamUi.cs) (revision 790) +++ dam clients/DamUI/trunk/src/Dam/Data/DamEngineIo/FillXmlInputFromDamUi.cs (.../FillXmlInputFromDamUi.cs) (revision 852) @@ -392,27 +392,26 @@ designOptions.SlopeAdaptionStartCotangent = location.SlopeAdaptionStartCotangent; designOptions.SlopeAdaptionEndCotangent = location.SlopeAdaptionEndCotangent; designOptions.SlopeAdaptionStepCotangent = location.SlopeAdaptionStepCotangent; - designOptions.NewDikeTopWidthSpecified = true; + designOptions.NewDikeTopWidthSpecified = location.UseNewDikeTopWidth; designOptions.NewDikeTopWidth = location.NewDikeTopWidth; - designOptions.NewDikeSlopeInsideSpecified = true; + designOptions.NewDikeSlopeInsideSpecified = location.UseNewDikeSlopeInside; designOptions.NewDikeSlopeInside = location.NewDikeSlopeInside; - designOptions.NewDikeSlopeInsideSpecified = true; + designOptions.NewDikeSlopeOutsideSpecified = location.UseNewDikeSlopeOutside; designOptions.NewDikeSlopeOutside = location.NewDikeSlopeOutside; - designOptions.NewDikeSlopeOutsideSpecified = true; + designOptions.NewShoulderTopSlopeSpecified = location.UseNewShoulderTopSlope; designOptions.NewShoulderTopSlope = location.NewShoulderTopSlope; - designOptions.NewShoulderTopSlopeSpecified = true; + designOptions.NewShoulderBaseSlopeSpecified = location.UseNewShoulderBaseSlope; designOptions.NewShoulderBaseSlope = location.NewShoulderBaseSlope; - designOptions.NewShoulderBaseSlopeSpecified = true; + designOptions.NewMaxHeightShoulderAsFractionSpecified = location.UseNewMaxHeightShoulderAsFraction; designOptions.NewMaxHeightShoulderAsFraction = location.NewMaxHeightShoulderAsFraction; - designOptions.NewMaxHeightShoulderAsFractionSpecified = true; + designOptions.NewMinDistanceDikeToeStartDitchSpecified = location.UseNewMinDistanceDikeToeStartDitch; designOptions.NewMinDistanceDikeToeStartDitch = location.NewMinDistanceDikeToeStartDitch; - designOptions.NewMinDistanceDikeToeStartDitchSpecified = true; designOptions.UseNewDitchDefinition = location.UseNewDitchDefinition; - designOptions.NewWidthDitchBottomSpecified = true; + designOptions.NewWidthDitchBottomSpecified = location.UseNewDitchDefinition; designOptions.NewWidthDitchBottom = location.NewWidthDitchBottom; - designOptions.NewSlopeAngleDitchSpecified = true; + designOptions.NewSlopeAngleDitchSpecified = location.UseNewDitchDefinition; designOptions.NewSlopeAngleDitch = location.NewSlopeAngleDitch; - designOptions.NewDepthDitchSpecified = true; + designOptions.NewDepthDitchSpecified = location.UseNewDitchDefinition; designOptions.NewDepthDitch = location.NewDepthDitch; designOptions.StabilityDesignMethod = ConversionHelper.ConvertToInputStabilityDesignMethod(location.StabilityDesignMethod); inputLocation.DesignOptions = designOptions;