Esempio n. 1
0
/// <summary>
/// Serialize a visual
/// </summary>
/// <returns></returns>

        public string Serialize()
        {
            UpdatePreSerializationSecondaryReferences();

            string serializedText = SerializeMsx.Serialize(this);             // serialize

            return(serializedText);
        }
Esempio n. 2
0
/// <summary>
/// Deserialize a DocumentMsx
/// </summary>
/// <param name="serializedDoc"></param>
/// <returns></returns>

        public static DocumentMsx Deserialize(
            string serializedDoc,
            AnalysisApplicationMsx app)
        {
            DocumentMsx doc = (DocumentMsx)SerializeMsx.Deserialize(serializedDoc, typeof(DocumentMsx));

            app.Document = doc;

            doc.SetApp(app);

            doc.UpdatePostDeserializationSecondaryReferences();

            return(doc);
        }