/// <summary> /// Serialize a visual /// </summary> /// <returns></returns> public string Serialize() { UpdatePreSerializationSecondaryReferences(); string serializedText = SerializeMsx.Serialize(this); // serialize return(serializedText); }
/// <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); }