Пример #1
0
        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;
        }
Пример #2
0
        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);
        }