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 (AllShowsViewModel != null)
     {
         AllShowsViewModel.Dispose();
     }
     if (GenresViewModel != null)
     {
         GenresViewModel.Dispose();
     }
     if (UpcomingViewModel != null)
     {
         UpcomingViewModel.Dispose();
     }
     if (SpotlightViewModel != null)
     {
         SpotlightViewModel.Dispose();
     }
     DisposeMainViewCancellationTokenSource(true);
 }
 public UpcomingPage()
 {
     InitializeComponent();
     BindingContext = Vm = new UpcomingViewModel();
 }
Ejemplo n.º 3
0
        public UpcomingPage()
        {
            InitializeComponent();

            ViewModel = (UpcomingViewModel)DataContext;
        }