Ejemplo n.º 1
0
 public void Dispose()
 {
     if (LatestEpisodesViewModel != null)
     {
         LatestEpisodesViewModel.Dispose();
     }
     if (NextUpViewModel != null)
     {
         NextUpViewModel.Dispose();
     }
     if (ResumeViewModel != null)
     {
         ResumeViewModel.Dispose();
     }
     if (MiniSpotlightsViewModel != null)
     {
         MiniSpotlightsViewModel.Dispose();
     }
     if (MiniSpotlightsViewModel2 != null)
     {
         MiniSpotlightsViewModel2.Dispose();
     }
     if (AllShowsViewModel != null)
     {
         AllShowsViewModel.Dispose();
     }
     if (ActorsViewModel != null)
     {
         ActorsViewModel.Dispose();
     }
     if (GenresViewModel != null)
     {
         GenresViewModel.Dispose();
     }
     if (SpotlightViewModel != null)
     {
         SpotlightViewModel.Dispose();
     }
     if (RomanticSeriesViewModel != null)
     {
         RomanticSeriesViewModel.Dispose();
     }
     if (ComedyItemsViewModel != null)
     {
         ComedyItemsViewModel.Dispose();
     }
     DisposeMainViewCancellationTokenSource(true);
 }
Ejemplo n.º 2
0
 public void Dispose()
 {
     if (LatestEpisodesViewModel != null)
     {
         LatestEpisodesViewModel.Dispose();
     }
     if (NextUpViewModel != null)
     {
         NextUpViewModel.Dispose();
     }
     if (ResumeViewModel != null)
     {
         ResumeViewModel.Dispose();
     }
     if (MiniSpotlightsViewModel != null)
     {
         MiniSpotlightsViewModel.Dispose();
     }
     if (AllShowsViewModel != null)
     {
         AllShowsViewModel.Dispose();
     }
     if (GenresViewModel != null)
     {
         GenresViewModel.Dispose();
     }
     if (UpcomingViewModel != null)
     {
         UpcomingViewModel.Dispose();
     }
     if (SpotlightViewModel != null)
     {
         SpotlightViewModel.Dispose();
     }
     DisposeMainViewCancellationTokenSource(true);
 }