/// <summary> /// btnPDFExport Click EventHandler /// </summary> /// <param name="sender"></param> /// <param name="e">RoutedEventArgs</param> private void btnPDFExport_Click(object sender, RoutedEventArgs e) { string methodNamespace = String.Format("{0}.{1}", GetType().FullName, System.Reflection.MethodInfo.GetCurrentMethod().Name); Logging.LogBeginMethod(this.DataContextViewModelSummaryReport.logger, methodNamespace); try { PDFExporter.btnExportPDF_Click(this.dgICPSummaryReport, orientation: PageOrientation.Landscape); } catch (Exception ex) { Prompt.ShowDialog("Message: " + ex.Message + "\nStackTrace: " + Logging.StackTraceToString(ex), "Exception", MessageBoxButton.OK); Logging.LogException(this.DataContextViewModelSummaryReport.logger, ex); } }
/// <summary> /// Event handler when user wants to Export the Grid to PDF /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void btnExportPdf_Click(object sender, RoutedEventArgs e) { PDFExporter.btnExportPDF_Click(this.dgConsensusEstimatesSummary); }