void ReportButtonClick(object sender, RoutedEventArgs e) { var vm = (ExceptionDialogViewModel) DataContext; var ex = vm.Exception; if (vm.Message != null) ex = new ReportHandledException(vm.Message, ex); ExceptionReporting.Report(ex); Close(); }
void ReportButtonClick(object sender, RoutedEventArgs e) { var vm = (ExceptionDialogViewModel)DataContext; var ex = vm.Exception; if (vm.Message != null) { ex = new ReportHandledException(vm.Message, ex); } ExceptionReporting.Report(ex); Close(); }