Mercurial > repos > IBBoard.WarFoundry.GUI.WinForms
comparison FrmMain.cs @ 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 | 83685ed69c69 |
comparison
equal
deleted
inserted
replaced
207:ac5f87626abd | 208:256f2f2f6e8c |
---|---|
1432 prefsForm.Show(this); | 1432 prefsForm.Show(this); |
1433 } | 1433 } |
1434 | 1434 |
1435 private void miExportArmyAsBasicXml_Click(object sender, EventArgs e) | 1435 private void miExportArmyAsBasicXml_Click(object sender, EventArgs e) |
1436 { | 1436 { |
1437 SaveFileDialog dialog = new SaveFileDialog(); | 1437 Form xmlOutput = new FrmXmlExport(CurrentArmy); |
1438 dialog.Filter = Translation.GetTranslation("armyExportBasicXmlFilter", "XML pages") + "|*.xml"; | 1438 xmlOutput.ShowDialog(this); |
1439 dialog.Title = Translation.GetTranslation("exportArmyDialog", "Export army"); | 1439 //SaveFileDialog dialog = new SaveFileDialog(); |
1440 | 1440 //dialog.Filter = Translation.GetTranslation("armyExportBasicXmlFilter", "XML pages") + "|*.xml"; |
1441 DialogResult dr = dialog.ShowDialog(this); | 1441 //dialog.Title = Translation.GetTranslation("exportArmyDialog", "Export army"); |
1442 | 1442 |
1443 if (dr == DialogResult.OK) | 1443 //DialogResult dr = dialog.ShowDialog(this); |
1444 { | 1444 |
1445 Army army = CurrentArmy; | 1445 //if (dr == DialogResult.OK) |
1446 string filePath = dialog.FileName; | 1446 //{ |
1447 log.DebugFormat("Exporting {0} to {1} as basic XML", army.Name, filePath); | 1447 // Army army = CurrentArmy; |
1448 WarFoundryXmlWithXslExporter.GetDefault().ExportArmy(army, filePath); | 1448 // string filePath = dialog.FileName; |
1449 } | 1449 // log.DebugFormat("Exporting {0} to {1} as basic XML", army.Name, filePath); |
1450 // WarFoundryXmlWithXslExporter.GetDefault().ExportArmy(army, filePath); | |
1451 //} | |
1450 } | 1452 } |
1451 } | 1453 } |
1452 } | 1454 } |