using System.ComponentModel; using System.Xml.Serialization; using Deltares.Geotechnics; using Deltares.Geotechnics.Soils; using Deltares.Geotechnics.SurfaceLines; using Deltares.Geotechnics.WaternetCreator; using Deltares.Standard.Language; namespace Deltares.Stability { /// /// Location for stabilility, which takes some properties from the stability model directly /// public class StabilityLocation : Location { private StabilityModel stabilityModel; public StabilityLocation() {} [XmlIgnore] [Browsable(false)] public StabilityModel StabilityModel { get { return stabilityModel; } set { stabilityModel = value; } } [XmlIgnore] [Browsable(false)] public override SoilProfile1D SoilProfile1D { get { return null; } set { ; } } [XmlIgnore] [Browsable(false)] public override SoilProfile2D SoilProfile2D { get { return stabilityModel.SoilProfile; } set { ; } } [XmlIgnore] [Browsable(false)] public override SurfaceLine2 Surfaceline { get { return stabilityModel.SurfaceLine2; } set { ; } } public override bool Inwards { get { return stabilityModel.GridOrientation == GridOrientation.Inwards; } set { ; } } public override string ToString() { return LocalizationManager.GetTranslatedText(typeof(StabilityLocation), "StabilityLocation"); } } }