Exemplo n.º 1
0
        private void ExportComboBox_SelectionChanged(object sender, RoutedEventArgs e)
        {
            if (ExportComboBox.SelectedIndex == 0)
            {
                ResultsExporter.ExportToPDF(this.result);
            }
            else if (ExportComboBox.SelectedIndex == 1)
            {
                ResultsExporter.ExportToCSV(this.result);
            }
            else if (ExportComboBox.SelectedIndex == 2)
            {
                ResultsExporter.ExportToXML(this.result);
            }

            ExportComboBox.SelectedIndex = -1;
        }
Exemplo n.º 2
0
 private void ExportPDFButton_Click(object sender, RoutedEventArgs e)
 {
     ResultsExporter.ExportToPDF(this.result);
 }