Index: DamClients/DamUI/trunk/src/DamClientsLibrary/Deltares.Dam.Data/DamEngineIo/ConversionHelper.cs
===================================================================
diff -u -r1966 -r1996
--- DamClients/DamUI/trunk/src/DamClientsLibrary/Deltares.Dam.Data/DamEngineIo/ConversionHelper.cs (.../ConversionHelper.cs) (revision 1966)
+++ DamClients/DamUI/trunk/src/DamClientsLibrary/Deltares.Dam.Data/DamEngineIo/ConversionHelper.cs (.../ConversionHelper.cs) (revision 1996)
@@ -314,31 +314,33 @@
///
/// Converts the Dam profile type to the input profile type
///
- /// Type of the soil geometry.
+ /// Type of the soil geometry.
///
- public static int ConvertToInputSoilGeometryType(SoilGeometryType soilGeometryType)
+ public static int ConvertToInputSoilProfileType(SoilProfileType soilProfileType)
{
- var translationTable = new Dictionary()
+ var translationTable = new Dictionary()
{
- {SoilGeometryType.SoilGeometry1D, 0},
- {SoilGeometryType.SoilGeometry2D, 2}
+ {SoilProfileType.SoilProfile1D, 0},
+ {SoilProfileType.SoilProfile2D, 1},
+ {SoilProfileType.SoilGeometryStiFile, 2}
};
- return translationTable[soilGeometryType];
+ return translationTable[soilProfileType];
}
///
/// Converts the input profile type to the Dam profile type
///
- /// Type of the soil geometry.
+ /// Type of the soil geometry.
///
- public static SoilGeometryType ConvertToSoilGeometryType(int soilGeometryType)
+ public static SoilProfileType ConvertToSoilProfileType(int soilProfileType)
{
- var translationTable = new Dictionary()
+ var translationTable = new Dictionary()
{
- {0, SoilGeometryType.SoilGeometry1D},
- {2, SoilGeometryType.SoilGeometry2D}
+ {0, SoilProfileType.SoilProfile1D},
+ {1, SoilProfileType.SoilProfile2D},
+ {2, SoilProfileType.SoilGeometryStiFile}
};
- return translationTable[soilGeometryType];
+ return translationTable[soilProfileType];
}
public const int InputFailureMechanismStabilityInside = 0;