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 diff
     1.1 --- a/FrmMain.cs	Sun Aug 14 14:38:06 2011 -0600
     1.2 +++ b/FrmMain.cs	Sun Aug 14 23:04:02 2011 -0600
     1.3 @@ -1434,19 +1434,21 @@
     1.4  
     1.5          private void miExportArmyAsBasicXml_Click(object sender, EventArgs e)
     1.6          {
     1.7 -            SaveFileDialog dialog = new SaveFileDialog();
     1.8 -            dialog.Filter = Translation.GetTranslation("armyExportBasicXmlFilter", "XML pages") + "|*.xml";
     1.9 -            dialog.Title = Translation.GetTranslation("exportArmyDialog", "Export army");
    1.10 +            Form xmlOutput = new FrmXmlExport(CurrentArmy);
    1.11 +            xmlOutput.ShowDialog(this);
    1.12 +            //SaveFileDialog dialog = new SaveFileDialog();
    1.13 +            //dialog.Filter = Translation.GetTranslation("armyExportBasicXmlFilter", "XML pages") + "|*.xml";
    1.14 +            //dialog.Title = Translation.GetTranslation("exportArmyDialog", "Export army");
    1.15  
    1.16 -            DialogResult dr = dialog.ShowDialog(this);
    1.17 +            //DialogResult dr = dialog.ShowDialog(this);
    1.18  
    1.19 -            if (dr == DialogResult.OK)
    1.20 -            {
    1.21 -                Army army = CurrentArmy;
    1.22 -                string filePath = dialog.FileName;
    1.23 -                log.DebugFormat("Exporting {0} to {1} as basic XML", army.Name, filePath);
    1.24 -                WarFoundryXmlWithXslExporter.GetDefault().ExportArmy(army, filePath);
    1.25 -            }
    1.26 +            //if (dr == DialogResult.OK)
    1.27 +            //{
    1.28 +            //    Army army = CurrentArmy;
    1.29 +            //    string filePath = dialog.FileName;
    1.30 +            //    log.DebugFormat("Exporting {0} to {1} as basic XML", army.Name, filePath);
    1.31 +            //    WarFoundryXmlWithXslExporter.GetDefault().ExportArmy(army, filePath);
    1.32 +            //}
    1.33          }
    1.34  	}
    1.35  }