Exemple #1
0
 public InfosWindows(FilmDTO film, ServiceReference.ServiceWCFSmartClient client)
 {
     InitializeComponent();
     film                            = client.GetFilmInfo(film.id);
     posterImg.Source                = new BitmapImage(new Uri("http://image.tmdb.org/t/p/w185/" + film.poster_path, UriKind.RelativeOrAbsolute));
     title.Content                   = film.titre;
     oriTitle.Content                = film.original_title;
     runtime.Content                 = film.runtime + " minutes";
     genresLB.ItemsSource            = new ObservableCollection <GenreDTO>(film.genres);
     genresLB.DisplayMemberPath      = "Name";
     actorsLB.ItemsSource            = new ObservableCollection <ActorDTO>(film.actors);
     actorsLB.DisplayMemberPath      = "name";
     realisatorsLB.ItemsSource       = new ObservableCollection <RealisateurDTO>(film.realisateurs);
     realisatorsLB.DisplayMemberPath = "Name";
 }