public void Dispose() { if (SpotlightViewModel != null) { SpotlightViewModel.Dispose(); } if (GameSystemsViewModel != null) { GameSystemsViewModel.Dispose(); } if (GenresViewModel != null) { GenresViewModel.Dispose(); } if (YearsViewModel != null) { YearsViewModel.Dispose(); } if (MultiPlayerViewModel != null) { MultiPlayerViewModel.Dispose(); } if (RecentlyPlayedViewModel != null) { RecentlyPlayedViewModel.Dispose(); } DisposeMainViewCancellationTokenSource(true); }
public ActionResult Create(YearsViewModel yearsViewModel) { if (ModelState.IsValid) { _repository.Add(yearsViewModel.NewYear); } return(View("Index", CreateView())); }
public void Dispose() { if (LatestTrailersViewModel != null) { LatestTrailersViewModel.Dispose(); } if (LatestMoviesViewModel != null) { LatestMoviesViewModel.Dispose(); } if (MiniSpotlightsViewModel != null) { MiniSpotlightsViewModel.Dispose(); } if (SpotlightViewModel != null) { SpotlightViewModel.Dispose(); } if (GenresViewModel != null) { GenresViewModel.Dispose(); } if (TrailersViewModel != null) { TrailersViewModel.Dispose(); } if (AllMoviesViewModel != null) { AllMoviesViewModel.Dispose(); } if (YearsViewModel != null) { YearsViewModel.Dispose(); } DisposeMainViewCancellationTokenSource(true); }
public void Dispose() { if (LatestTrailersViewModel != null) { LatestTrailersViewModel.Dispose(); } if (LatestMoviesViewModel != null) { LatestMoviesViewModel.Dispose(); } if (MiniSpotlightsViewModel != null) { MiniSpotlightsViewModel.Dispose(); } if (MiniSpotlightsViewModel2 != null) { MiniSpotlightsViewModel2.Dispose(); } if (SpotlightViewModel != null) { SpotlightViewModel.Dispose(); } if (GenresViewModel != null) { GenresViewModel.Dispose(); } if (AllMoviesViewModel != null) { AllMoviesViewModel.Dispose(); } if (ActorsViewModel != null) { ActorsViewModel.Dispose(); } if (BoxsetsViewModel != null) { BoxsetsViewModel.Dispose(); } if (TrailersViewModel != null) { TrailersViewModel.Dispose(); } if (HDMoviesViewModel != null) { HDMoviesViewModel.Dispose(); } if (ThreeDMoviesViewModel != null) { ThreeDMoviesViewModel.Dispose(); } if (FamilyMoviesViewModel != null) { FamilyMoviesViewModel.Dispose(); } if (ComedyItemsViewModel != null) { ComedyItemsViewModel.Dispose(); } if (RomanticMoviesViewModel != null) { RomanticMoviesViewModel.Dispose(); } if (YearsViewModel != null) { YearsViewModel.Dispose(); } DisposeMainViewCancellationTokenSource(true); }
public YearlySchedule(int userId) : base(userId) { YearsViewModel = new YearsViewModel(); YearChangedCommand = new RelayCommand(async() => { await YearChanged(); }, canExecute: () => true); }