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); } }
void downloadSlotsViewModel_DownloadFailed() { NotificationService.Alert(Properties.Resources.DownloadingFailedMessage, Properties.Resources.DownloadingFailedHeader); stop(); }
void Dispatcher_UnhandledException(object sender, DispatcherUnhandledExceptionEventArgs e) { NotificationService.Alert("Unhandled exception detected in UI thread", "exception"); logger.LogException(e.Exception); }
void TaskScheduler_UnobservedTaskException(object sender, UnobservedTaskExceptionEventArgs e) { NotificationService.Alert("Unhandled exception throwed when processing asyncronous operation", "exception"); logger.LogException(e.Exception); }