Index: dam engine/trunk/src/Deltares.DamEngine.Interface/ConversionHelper.cs =================================================================== diff -u -r707 -r711 --- dam engine/trunk/src/Deltares.DamEngine.Interface/ConversionHelper.cs (.../ConversionHelper.cs) (revision 707) +++ dam engine/trunk/src/Deltares.DamEngine.Interface/ConversionHelper.cs (.../ConversionHelper.cs) (revision 711) @@ -449,5 +449,50 @@ }; return translationTable[inputAnalysisType]; } + + /// + /// The input zone type no zones + /// + public const int InputZoneTypeNoZones = 0; + /// + /// The input zone type zone areas + /// + public const int InputZoneTypeZoneAreas = 1; + /// + /// The input zone types forbidden zones + /// + public const int InputZoneTypesForbiddenZones = 2; + + /// + /// Converts the type of to input zone. + /// + /// Type of the zone. + /// + public static int ConvertToInputZoneType(MStabZonesType zoneType) + { + var translationTable = new Dictionary() + { + {MStabZonesType.NoZones, InputZoneTypeNoZones}, + {MStabZonesType.ZoneAreas, InputZoneTypeZoneAreas}, + {MStabZonesType.ForbiddenZone, InputZoneTypesForbiddenZones} + }; + return translationTable[zoneType]; + } + + /// + /// Converts the type of to zone. + /// + /// Type of the input zone. + /// + public static MStabZonesType ConvertToZoneType(int inputZoneType) + { + var translationTable = new Dictionary () + { + {InputZoneTypeNoZones, MStabZonesType.NoZones}, + {InputZoneTypeZoneAreas, MStabZonesType.ZoneAreas}, + {InputZoneTypesForbiddenZones, MStabZonesType.ForbiddenZone} + }; + return translationTable[inputZoneType]; + } } } \ No newline at end of file