private void DownloadVideos(ActionType action) { if (CheckboxChecked()) { PopulateUrlDownloadList(); foreach (var url in UrlDowloadList) { var title = playlistVideos.Find(url).Title; progbarwin = new ProgressBarWindow(action, title, downloadPath) { Owner = this }; progbarwin.Show(); progbarwin.Start(action, title, url, downloadPath); progbarwin.Close(); } var remove = System.Windows.MessageBox.Show("Downloads completed. Some of your videos may not have been downloaded due to copyrights." + "\n\n" + "Do you want to remove all downloaded videos from your YouTube playlist?", "Update Playlist", MessageBoxButton.YesNo, MessageBoxImage.Question); if (remove == MessageBoxResult.Yes) { RemoveDownloads(); RepopulateVideoList(); } } else { System.Windows.MessageBox.Show("Please select a video to download.", "Selection Required", MessageBoxButton.OK, MessageBoxImage.Exclamation); } }