private void StreamOption_Click(object sender, RoutedEventArgs e) { string VFormat = DownloadVideoOption.IsChecked == true?DownloadManager.GetVideoEncoding(bestFormat.BestVideo).ToString() : localInfo?.VideoStream?.Format; string AFormat = DownloadAudioOption.IsChecked == true?bestFormat.BestAudio?.AudioEncoding.ToString() : localInfo?.AudioStream?.Format; ContainerText.Text = DownloadBusiness.GetFinalExtension(VFormat, AFormat); DownloadButton.IsEnabled = DownloadVideoOption.IsChecked == true || DownloadAudioOption.IsChecked == true; }
public DownloadBusiness GetDownloadBusiness(string Version) { DownloadBusiness result; //if (string.IsNullOrEmpty(Version) || Version.Equals("V1", StringComparison.InvariantCultureIgnoreCase)) //{ // result = new DownloadBusiness(); //} //else //{ result = new DownloadBusiness(); //} return(result); }