コード例 #1
0
        private async Task ApplyMovieSelection(MovieDbMovie movieDto)
        {
            Movie = await MovieService.ApplyDtoData(Movie, movieDto);

            OnMovieChanged?.Invoke(this, Movie);
            RaisePropertyChanged(nameof(Movie));
            RaisePropertyChanged(nameof(Genres));
        }
コード例 #2
0
        public async Task UndoChanges()
        {
            // Zurücksetzen aller Änderungen wenn Eingaben ungültig und Page verlassen wird
            Movie origionalMovie = await Resolver.Resolve <IMovieService>().GetWithGenresAndSourcesAsync(Movie.Id);

            if (origionalMovie != null)
            {
                Movie = origionalMovie;
                OnMovieChanged?.Invoke(this, Movie);
            }
        }
コード例 #3
0
        public async Task SaveChanges()
        {
            Movie = await MovieService.SaveMovieAsync(Movie);

            OnMovieChanged?.Invoke(this, Movie);
        }