Esempio n. 1
0
        private async Task ApplyMovieSelection(MovieDbMovie movieDto)
        {
            Movie = await MovieService.ApplyDtoData(Movie, movieDto);

            OnMovieChanged?.Invoke(this, Movie);
            RaisePropertyChanged(nameof(Movie));
            RaisePropertyChanged(nameof(Genres));
        }
Esempio n. 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);
            }
        }
Esempio n. 3
0
        public async Task SaveChanges()
        {
            Movie = await MovieService.SaveMovieAsync(Movie);

            OnMovieChanged?.Invoke(this, Movie);
        }