Beispiel #1
0
 private void addDownload(object item)
 {
     try
     {
         string savingFolder = settingsViewModel.SavingFolder;
         this.DownloadsViewModel.AddDownload(CurrentUri, savingFolder);
     }
     catch (Exception e)
     {
         logger.LogException(e);
         NotificationService.Alert(Properties.Resources.DownloadStartFailedMessage,
                                   Properties.Resources.DownloadingFailedHeader);
     }
 }
Beispiel #2
0
 void downloadSlotsViewModel_DownloadFailed()
 {
     NotificationService.Alert(Properties.Resources.DownloadingFailedMessage,
                               Properties.Resources.DownloadingFailedHeader);
     stop();
 }
Beispiel #3
0
 void Dispatcher_UnhandledException(object sender, DispatcherUnhandledExceptionEventArgs e)
 {
     NotificationService.Alert("Unhandled exception detected in UI thread",
                               "exception");
     logger.LogException(e.Exception);
 }
Beispiel #4
0
 void TaskScheduler_UnobservedTaskException(object sender, UnobservedTaskExceptionEventArgs e)
 {
     NotificationService.Alert("Unhandled exception throwed when processing asyncronous operation",
                               "exception");
     logger.LogException(e.Exception);
 }