public YoutubeMusicViewModel()
        {
            youtubeDownloader = new YoutubeDownloader();
            var location = Environment.GetFolderPath(Environment.SpecialFolder.MyMusic);

            DirectoryLocation = ConfigCommands.LoadSavedLocation(location.Substring(0, location.LastIndexOf('\\') + 1) + "Downloads");
        }
Exemplo n.º 2
0
        public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
        {
            YoutubeDownloader youtubeDownloader = new YoutubeDownloader();

            if (youtubeDownloader.LinkVerification(value as string))
            {
                return(true);
            }
            return(false);
        }