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); }
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); }