diff --git a/MTC_Adapter/SCMA/DataModelXML.cs b/MTC_Adapter/SCMA/DataModelXML.cs index a27adcb..a9214ff 100644 --- a/MTC_Adapter/SCMA/DataModelXML.cs +++ b/MTC_Adapter/SCMA/DataModelXML.cs @@ -25,13 +25,26 @@ namespace SCMA public Modules Machine { get; set; } #endif + // rivedere con + // - https://docs.microsoft.com/it-it/dotnet/standard/serialization/controlling-xml-serialization-using-attributes + // - https://www.jonasjohn.de/snippets/csharp/xmlserializer-example.htm + // RIPENSARE OBJ GERARCHICO IN TOTO... + // ModelDesign > MAchine > List + List + List ognuno coi suoi attributi... + + [XmlArray("Machine")] - //[XmlArrayItem("Property")] [XmlArrayItem("Property", Type = typeof(Property))] [XmlArrayItem("Variable", Type = typeof(Variable))] [XmlArrayItem("Component", Type = typeof(Component))] public ouData[] PVData { get; set; } + //[XmlArray("Machine")] + //[XmlArrayItem("Property")] + //[XmlArrayItem("Property", Type = typeof(Property))] + //[XmlArrayItem("Variable", Type = typeof(Variable))] + //[XmlArrayItem("Component", Type = typeof(Component))] + //public cData[] CData { get; set; } + /// /// Serializzazione XML dell'oggetto conf dell'adapter /// @@ -93,9 +106,9 @@ namespace SCMA [XmlArray("Machine")] //[XmlArrayItem("Property")] - [XmlArrayItem("Property", Type = typeof(Property))] - [XmlArrayItem("Variable", Type = typeof(Variable))] - [XmlArrayItem("Component", Type = typeof(Component))] + //[XmlArrayItem("Property", Type = typeof(Property))] + //[XmlArrayItem("Variable", Type = typeof(Variable))] + //[XmlArrayItem("Component", Type = typeof(Component))] public ouData[] PVData { get; set; }