# HG changeset patch # User Dan.Kulinski@dank-laptop.Global.Local # Date 1313384642 21600 # Node ID 256f2f2f6e8c2042123e71eebf0e8b73c3213ac6 # Parent ac5f87626abdc152a87e6cb9e23826889f5ddfd4 Basic XML UI output GUI work diff -r ac5f87626abd -r 256f2f2f6e8c FrmMain.cs --- 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); + //} } } }