Ejemplo n.º 1
0
 protected override void OnNavigatedTo(NavigationEventArgs e)
 {
     myProgress.Opacity = 1;
     myProgress.IsIndeterminate = true;
     //artist
     string Type = NavigationContext.QueryString["type"];
     if (Type == "artist")
     {
         ArtistPhotos photos = new ArtistPhotos();
         photos.getFailed += photos_getFailed;
         photos.getCompleted += photos_getCompleted;
         photos.get(NavigationContext.QueryString["ID"]);
     }
     else if (Type == "movie")
     {
         MoviePhotos movies = new MoviePhotos();
         movies.getFailed += movies_getFailed;
         movies.getCompleted += movies_getCompleted;
         movies.get(NavigationContext.QueryString["ID"]);
     }  
     
     base.OnNavigatedTo(e);
 }
Ejemplo n.º 2
0
        void birFilm_getCompleted(Film.RootObject data)
        {
            loader.IsIndeterminate = false;
            PanoramaRoot.Title = data.movie.name;
            film_hakkinda.DataContext = data.movie;
            listOyuncular.ItemsSource = data.artists;
            listYorumlar.ItemsSource = data.comments;

            var Url = data.movie.trailerUrl;
            if (Url != "False")
            {
                ((ApplicationBarIconButton)this.ApplicationBar.Buttons[0]).IsEnabled = true;
            }
            else
            {
                ((ApplicationBarIconButton)this.ApplicationBar.Buttons[0]).IsEnabled = false;
            }

            MoviePhotos moviePhotos = new MoviePhotos();
            moviePhotos.getCompleted += moviePhotos_getCompleted;
            moviePhotos.get(data.movie.id);
        }