private void BulkDownloadButton_Click(object sender, RoutedEventArgs e) { var links = BulkLinksTextBox.Text.Split(new string[] { "\r\n" }, StringSplitOptions.RemoveEmptyEntries); _ = DownloadPage.SequenceDownload(links, GlobalConsts.DownloadSettings.Clone(), silent: true); BulkLinksTextBox.Text = string.Empty; MetroAnimatedTabControl.SelectedItem = QueueMetroTabItem; }
private void BulkDownloadButton_Click(object sender, RoutedEventArgs e) { var links = BulkLinksTextBox.Text.Split(new string[] { "\r\n" }, StringSplitOptions.RemoveEmptyEntries); if (!CanDownload()) { GlobalConsts.ShowMessage((string)FindResource("Error"), $"{string.Format((string)FindResource("FileDoesNotExist"), GlobalConsts.FFmpegFilePath)}").ConfigureAwait(false); return; } _ = DownloadPage.SequenceDownload(links, GlobalConsts.DownloadSettings.Clone(), silent: true); BulkLinksTextBox.Text = string.Empty; MetroAnimatedTabControl.SelectedItem = QueueMetroTabItem; }