changeset 208:256f2f2f6e8c xml-export-ui

Basic XML UI output GUI work
author Dan.Kulinski@dank-laptop.Global.Local
date Sun, 14 Aug 2011 23:04:02 -0600
parents ac5f87626abd
children f57957fe9009
files FrmMain.cs
diffstat 1 files changed, 13 insertions(+), 11 deletions(-) [+]
line wrap: on
line diff
--- a/FrmMain.cs	Sun Aug 14 14:38:06 2011 -0600
+++ b/FrmMain.cs	Sun Aug 14 23:04:02 2011 -0600
@@ -1434,19 +1434,21 @@
 
         private void miExportArmyAsBasicXml_Click(object sender, EventArgs e)
         {
-            SaveFileDialog dialog = new SaveFileDialog();
-            dialog.Filter = Translation.GetTranslation("armyExportBasicXmlFilter", "XML pages") + "|*.xml";
-            dialog.Title = Translation.GetTranslation("exportArmyDialog", "Export army");
+            Form xmlOutput = new FrmXmlExport(CurrentArmy);
+            xmlOutput.ShowDialog(this);
+            //SaveFileDialog dialog = new SaveFileDialog();
+            //dialog.Filter = Translation.GetTranslation("armyExportBasicXmlFilter", "XML pages") + "|*.xml";
+            //dialog.Title = Translation.GetTranslation("exportArmyDialog", "Export army");
 
-            DialogResult dr = dialog.ShowDialog(this);
+            //DialogResult dr = dialog.ShowDialog(this);
 
-            if (dr == DialogResult.OK)
-            {
-                Army army = CurrentArmy;
-                string filePath = dialog.FileName;
-                log.DebugFormat("Exporting {0} to {1} as basic XML", army.Name, filePath);
-                WarFoundryXmlWithXslExporter.GetDefault().ExportArmy(army, filePath);
-            }
+            //if (dr == DialogResult.OK)
+            //{
+            //    Army army = CurrentArmy;
+            //    string filePath = dialog.FileName;
+            //    log.DebugFormat("Exporting {0} to {1} as basic XML", army.Name, filePath);
+            //    WarFoundryXmlWithXslExporter.GetDefault().ExportArmy(army, filePath);
+            //}
         }
 	}
 }