예제 #1
0
 /// <summary>
 /// Показать содержимое подкаста в виде html-страницы
 /// </summary>
 /// <param name="podcast">Ссылка на экземпляр класса Podcast</param>
 private void PodcastnOnHtmlPage(PodcastInfo podcast)
 {
     _dvm = new ProcessViewModel(podcast, Browsers.CurrentItem as BrowserInfo);
     _dvm.CreateHtml(Browsers.CurrentItem as BrowserInfo);
     //var sw = new StatusWindow(podcast.Url, Browsers.CurrentItem as BrowserInfo)
     //{
     //    ShowCancelButton = Visibility.Hidden
     //};
     ////IsBusy = Visibility.Collapsed;
     //sw.ShowDialog();
     ////IsBusy = Visibility.Visible;
 }
예제 #2
0
        private void CreatePlaylist(PodcastInfo podcast)
        {
            _dvm = new ProcessViewModel(podcast, Browsers.CurrentItem as BrowserInfo);
            _dvm.CreatePlaylist();
            //using (var dialog = new SaveFileDialog())
            //{
            //    dialog.Filter = "Плейлисты|*.m3u";
            //    dialog.FileName = $"{podcast.Title}";
            //    if (dialog.ShowDialog() != DialogResult.OK) return;

            //    var result = Grabber.CreatePlaylist(dialog.FileName, podcast.Url);
            //    if (!result)
            //    {
            //        CreatePlaylistFailed(podcast);
            //        return;
            //    }
            //    MessageBox.Show("Плейлист создан!", _msgTitle, MessageBoxButton.OK, MessageBoxImage.Information);
            //}
        }
예제 #3
0
 private void Download(PodcastInfo podcast)
 {
     _dvm = new ProcessViewModel(podcast, Browsers.CurrentItem as BrowserInfo);
     _dvm.Download();
 }