static void Application_ThreadException(object sender, System.Threading.ThreadExceptionEventArgs e) { List <ResourceNode> dirty = GetDirtyFiles(); Exception ex = e.Exception; IssueDialog d = new IssueDialog(ex, dirty); d.ShowDialog(); }
private void OpenIssueDialog(object sender, RoutedEventArgs e) { Window issueDialog = new IssueDialog { DataContext = new IssueDialogViewModel() }; issueDialog.ShowDialog(); }
static void CurrentDomain_UnhandledException(object sender, UnhandledExceptionEventArgs e) { if (e.ExceptionObject is Exception) { List <ResourceNode> dirty = GetDirtyFiles(); Exception ex = e.ExceptionObject as Exception; IssueDialog d = new IssueDialog(ex, dirty); d.ShowDialog(); } }