Exemple #1
0
        private async void FromWatchlistExecute()
        {
            var tags = _movie.tag.ToList();

            if (tags.Contains(WatchlistKey))
            {
                tags.Remove(WatchlistKey);
                _movie.tag = tags.ToList();
                await _appContext.XBMC.VideoLibrary.SetMovieDetails(_movie.movieid, tag : tags.ToList());
            }
            ToWatchlist.NotifyCanExecuteChanged();
            FromWatchlist.NotifyCanExecuteChanged();
        }
Exemple #2
0
        async void ToWatchlistExecute()
        {
            //var mv = await _appContext.XBMC.VideoLibrary.GetMovieDetails(_movie.movieid, new KODIRPC.Video.Fields.Movie(){ KODIRPC.Video.Fields.MovieItem.genre});
            var tags = _movie.tag.ToList();

            if (!tags.Contains(WatchlistKey))
            {
                tags.Add(WatchlistKey);
                _movie.tag = tags.ToList();
                await _appContext.XBMC.VideoLibrary.SetMovieDetails(_movie.movieid, tag : tags.ToList());
            }

            ToWatchlist.NotifyCanExecuteChanged();
            FromWatchlist.NotifyCanExecuteChanged();
        }