From edf5392d1e74f9ccf979ea6492a6c67d60e39842 Mon Sep 17 00:00:00 2001 From: Marco-Pellegrino <53620289+Marco-Pellegrino@users.noreply.github.com> Date: Wed, 18 Oct 2023 23:25:36 +0200 Subject: [PATCH] :bug: :ambulance: loadbase reference --- FemDesign.Core/Loads/LoadBase.cs | 22 ++-------------------- 1 file changed, 2 insertions(+), 20 deletions(-) diff --git a/FemDesign.Core/Loads/LoadBase.cs b/FemDesign.Core/Loads/LoadBase.cs index d2d0470a6..bca3d87d8 100644 --- a/FemDesign.Core/Loads/LoadBase.cs +++ b/FemDesign.Core/Loads/LoadBase.cs @@ -11,30 +11,13 @@ namespace FemDesign public partial class LoadBase: EntityBase, ILoadElement { [XmlAttribute("load_case")] - public System.Guid _loadCaseGuid; - - [XmlIgnore] - public System.Guid LoadCaseGuid - { - get - { - if (LoadCase != null) - return _loadCase.Guid; - else - return default(System.Guid); - } - set - { - _loadCaseGuid = value; - } - } + public System.Guid LoadCaseGuid { get; set; } [XmlAttribute("comment")] public string Comment { get; set; } // comment_string - [XmlIgnore] - public Loads.LoadCase _loadCase; + public Loads.LoadCase _loadCase { get; set; } [XmlIgnore] public Loads.LoadCase LoadCase @@ -46,6 +29,5 @@ public Loads.LoadCase LoadCase LoadCaseGuid = value.Guid; } } - } } \ No newline at end of file