comparison FrmExportXml.cs @ 167:9808adf2d566 default tip

Re #419: Remove assumptions of a file-based install * Update GTK# GUI to use Streams version of XSLT export
author IBBoard <dev@ibboard.co.uk>
date Wed, 28 Nov 2012 20:25:53 +0000
parents 0d8004d6a4e5
children
comparison
equal deleted inserted replaced
166:ef94bed818e1 167:9808adf2d566
86 { 86 {
87 string fileName = Filename; 87 string fileName = Filename;
88 88
89 if (transformWidget.TransformEnabled) 89 if (transformWidget.TransformEnabled)
90 { 90 {
91 WarFoundryXmlWithXslExporter.GetDefault().ExportArmyWithTransform(army, fileName, transformWidget.GetXsltPath()); 91 using (Stream stream = transformWidget.GetXsltStream())
92 {
93 WarFoundryXmlWithXslExporter.GetDefault().ExportArmyWithTransform(army, fileName, stream);
94 }
92 } 95 }
93 else 96 else
94 { 97 {
95 WarFoundryXmlWithXslExporter.GetDefault().ExportArmy(army, fileName); 98 WarFoundryXmlWithXslExporter.GetDefault().ExportArmy(army, fileName);
96 } 99 }