예제 #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);
     }
 }