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); } }
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); } }