Ejemplo n.º 1
0
        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();
        }
Ejemplo n.º 2
0
        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";
        }