private void saveFiles_Click(object sender, RoutedEventArgs e) { CGedcomFileHandler theFileHandler = new CGedcomFileHandler(); if (parsedFileData1.flowDoc != null && parsedFileData1.xmlDoc != null) { theFileHandler.saveDataToFile(parsedFileData1.flowDoc, parsedFileData1.xmlDoc); } if (parsedFileData2.flowDoc != null && parsedFileData2.xmlDoc != null) { theFileHandler.saveDataToFile(parsedFileData2.flowDoc, parsedFileData2.xmlDoc); } }
private void buttonSaveReport_Click(object sender, RoutedEventArgs e) { XmlDocument theXmlDocument = CHelper.convertXDocToXmlDoc(theReportData.XDoc); theFileHandler.saveDataToFile(theReportData.flowDoc, theXmlDocument); }