Beispiel #1
0
        public static void SaveToFile(string templatePath, ExportTemplate template)
        {
            XmlSerializer serialiser = new XmlSerializer(typeof(ExportTemplate), SCHEMA_NAMESPACE);

            new FileInfo(templatePath).Directory.Create();

            using (XmlWriter writer = XmlWriter.Create(templatePath, new XmlWriterSettings()
            {
                Indent = true
            }))
            {
                serialiser.Serialize(writer, template);
            }
        }
Beispiel #2
0
 public IconExporter(ExportTemplate exportTemplate)
 {
     ExportTemplate = exportTemplate;
 }