Esempio n. 1
0
 /// <summary>
 /// Saves the current Preamble List to an XML file
 /// </summary>
 public void SavePreambles(string PreamblesFile)
 {
     try
     {
         XmlSerializer serializer = new System.Xml.Serialization.XmlSerializer(typeof(List <DynPreambleElement>));
         using (TextWriter tw = new StreamWriter(PreamblesFile))
         {
             serializer.Serialize(tw, ElementList.Select(vm => vm.GetModel()).ToList());
         }
     }
     catch (Exception e)
     {
         string s = e.Message;
     }
 }