public static bool? ShowDialog(Window w, Exception e) { var form = new ErrorForm(e); return w.Dispatcher.Invoke(new Func<bool?>(form.ShowDialog)) as bool?; }
public static void Show(Exception e) { var form = new ErrorForm(e); form.Show(); }