Index: DamClients/DamUI/trunk/src/DamClientsLibrary/Deltares.Dam.Data/CsvExportData.cs =================================================================== diff -u -r3433 -r3459 --- DamClients/DamUI/trunk/src/DamClientsLibrary/Deltares.Dam.Data/CsvExportData.cs (.../CsvExportData.cs) (revision 3433) +++ DamClients/DamUI/trunk/src/DamClientsLibrary/Deltares.Dam.Data/CsvExportData.cs (.../CsvExportData.cs) (revision 3459) @@ -1593,6 +1593,7 @@ } [Browsable(false)] + [XmlIgnore] public List ResultSlices { get; set; } [PropertyOrder(2, 1)] Index: DamClients/DamUI/trunk/src/DamClientsLibrary/Deltares.Dam.Data/StabilityResultSlices.cs =================================================================== diff -u -r3437 -r3459 --- DamClients/DamUI/trunk/src/DamClientsLibrary/Deltares.Dam.Data/StabilityResultSlices.cs (.../StabilityResultSlices.cs) (revision 3437) +++ DamClients/DamUI/trunk/src/DamClientsLibrary/Deltares.Dam.Data/StabilityResultSlices.cs (.../StabilityResultSlices.cs) (revision 3459) @@ -21,6 +21,7 @@ using System.Collections.Generic; using Deltares.Mathematics; +using System.Xml.Serialization; namespace Deltares.Dam.Data { @@ -29,20 +30,23 @@ /// public class StabilityResultSlices { - + /// /// The list of all slices /// + [XmlIgnore] public List StabilityResultSlice; /// /// The active center point /// + [XmlIgnore] public Point2D ActiveCenterPoint; /// /// The passive center point /// + [XmlIgnore] public Point2D PassiveCenterPoint; } } Index: DamClients/DamUI/trunk/src/DamClientsLibrary/Deltares.Dam.Data/IO/VersionInfo.cs =================================================================== diff -u -r2875 -r3459 --- DamClients/DamUI/trunk/src/DamClientsLibrary/Deltares.Dam.Data/IO/VersionInfo.cs (.../VersionInfo.cs) (revision 2875) +++ DamClients/DamUI/trunk/src/DamClientsLibrary/Deltares.Dam.Data/IO/VersionInfo.cs (.../VersionInfo.cs) (revision 3459) @@ -34,12 +34,29 @@ /// FileVersion 1 is for version 19.1.1. /// FileVersion 2 is for version 20.1.1. and up public const int CurrentFileVersion = 2; - /// Current File Version. - /// The file version. - /// - /// - public int FileVersion { get; set; } // Default is 0 and indicates the situation that FileVersion was not introduced yet + //#Bka: added this field to be able to debug the de-serialization of the file version info. + // I noticed that when the designresults are added to the serialization/de-serialization, + // this version info is not read any more, indicating a problem with the serialization/ + // de-serialization of the design results. Set a breakpoint at the setter of the property + // and a breakpoint at "if (damProjectData != null)" in method OpenXMLProject in DamProject. + // Executing should always hit the line here first as fileversion should be read from the xml + // If it stops at the DamProject breakpoint first, you know serialization/de-serialization + // of the designresults is wrong. + private int fileVersion; + + /// + /// Gets or sets the file version. + /// + /// + /// The file version. + /// + public int FileVersion + { + get { return fileVersion; } + set { fileVersion = value; } + } // Default is 0 and indicates the situation that FileVersion was not introduced yet + /// Gets or sets the assembly name with which the input file is being created. /// The program version. ///