private void buttonUnion_Click(object sender, RoutedEventArgs e) { CConstants.dataManipulatorStructure theUnionData = new CConstants.dataManipulatorStructure(); // Find persons with attribute missing and merge the data in one theXDocument theUnionData = theDataManipulator.createUnionData(); // Show result window Report theResultReport = new Report(theUnionData); theResultReport.Show(); }
public Report(CConstants.dataManipulatorStructure reportDataInput) { theReportData = new CConstants.dataManipulatorStructure(); theFileHandler = new CGedcomFileHandler(); theDataManipulator = new CDataManipulator(); theReportData = reportDataInput; InitializeComponent(); this.theReportTextBox.Document = theReportData.flowDoc; int numberOfPersons = theReportData.flowDoc.Blocks.Where(test => test.Name.Contains("INDI_")).Count(); this.Title = "Combined Data: " + numberOfPersons.ToString() + " Persons"; }