using System; using System.Collections.Generic; using System.Linq; using System.Text; using Deltares.Geometry; using Deltares.Geotechnics.GeotechnicalGeometry; using Deltares.Standard; using Deltares.Standard.IO.Xml; namespace Deltares.MStab { public class MStabXmlHandler : IXmlHandler { public bool CanHandle(Type type, string property) { if (type == typeof(MStabProject) && property == "Geometry") { return true; } else { return false; } } public bool CanHandle(Type type) { return false; } public Type GetFormerPropertyType(Type type, string property) { return null; } public void Handle(object target, string property, object value, object[] objects) { if (target is MStabProject && property == "Geometry") { ((MStabProject) target).Stability.SoilProfile.Geometry = (GeometryData) value; } } public void HandleObject(object target, object value) { } public void SetVersion(string version) { } public void Upgrade(object[] target) { } } }