Inheritance: System.Exception
        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();
        }
Ejemplo n.º 2
0
        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();
        }