コード例 #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);
     }
 }
コード例 #2
0
 void downloadSlotsViewModel_DownloadFailed()
 {
     NotificationService.Alert(Properties.Resources.DownloadingFailedMessage,
                               Properties.Resources.DownloadingFailedHeader);
     stop();
 }
コード例 #3
0
ファイル: MainWindow.xaml.cs プロジェクト: sat-dev/MySamples
 void Dispatcher_UnhandledException(object sender, DispatcherUnhandledExceptionEventArgs e)
 {
     NotificationService.Alert("Unhandled exception detected in UI thread",
                               "exception");
     logger.LogException(e.Exception);
 }
コード例 #4
0
ファイル: MainWindow.xaml.cs プロジェクト: sat-dev/MySamples
 void TaskScheduler_UnobservedTaskException(object sender, UnobservedTaskExceptionEventArgs e)
 {
     NotificationService.Alert("Unhandled exception throwed when processing asyncronous operation",
                               "exception");
     logger.LogException(e.Exception);
 }