示例#1
0
 public static void Show(params Exception[] exceptions)
 {
     if (exceptions == null) return;
     try
     {
         var viewModel = new ErrorReportViewModel(exceptions);
         var view = new ErrorReportView { DataContext = viewModel };
         view.ShowDialog();
     }
     catch (Exception internalException)
     {
         MessageBox.Show(internalException.Message);
     }
 }
示例#2
0
 public static void Show(params Exception[] exceptions)
 {
     if (exceptions == null)
     {
         return;
     }
     try
     {
         var viewModel = new ErrorReportViewModel(exceptions);
         var view      = new ErrorReportView {
             DataContext = viewModel
         };
         view.ShowDialog();
     }
     catch (Exception internalException)
     {
         MessageBox.Show(internalException.Message);
     }
 }