Ejemplo n.º 1
0
        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();
        }
Ejemplo n.º 2
0
        private void OpenIssueDialog(object sender, RoutedEventArgs e)
        {
            Window issueDialog = new IssueDialog
            {
                DataContext = new IssueDialogViewModel()
            };

            issueDialog.ShowDialog();
        }
Ejemplo n.º 3
0
 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();
     }
 }