public void ExecuteDownloadCommand(RssEpisode episode) { IsBusy = true; try { if (episode != null && episode.Id != null) { if (DownloadService.CanDownloadPodcast(episode)) { DownloadService.Instance.DownloadPodcast(episode); //fires message center messages } else { Debug.WriteLine("RssEpisodeListViewModel.ExecuteDownloadCommand CanDownload was false "); } } else { Debug.WriteLine("RssEpisodeListViewModel.ExecuteDownloadCommand episode or episode id was null "); } } catch (Exception ex) { //could not delete item Debug.WriteLine("RssEpisodeListViewModel.ExecuteDownloadCommand Could not Download Podcast File " + ex.Message); } finally { IsBusy = false; } }
public async Task ExecuteDownloadCommand() { IsBusy = true; try { if (DownloadService.CanDownloadPodcast(EpisodeItem)) { DownloadButtonEnabled = false; DownloadService.Instance.DownloadPodcast(EpisodeItem); //fires message center messages } } catch (Exception ex) { //could not delete item Debug.WriteLine("Could not Download Podcast File " + ex.Message); } finally { IsBusy = false; } }