Exemple #1
0
 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);
 }
Exemple #2
0
 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);
 }