private void BuTrailer_Click(object sender, RoutedEventArgs e)
 {
     try
     {
         FilmsViewModel fVM  = new FilmsViewModel();
         object         item = dataGridFilms.SelectedItem;
         string         ID   = (dataGridFilms.SelectedCells[0].Column.GetCellContent(item) as TextBlock).Text;
         FilmDTO        film = new FilmDTO();
         film = fVM.GetFilmswithId(int.Parse(ID)).First();
         System.Diagnostics.Process.Start(film.Trailer);
     }
     catch { }
 }
 private void idSelected(object sender, SelectionChangedEventArgs e)
 {
     if (started)
     {
         FilmsViewModel fVM  = new FilmsViewModel();
         object         item = dataGridFilms.SelectedItem;
         string         ID   = (dataGridFilms.SelectedCells[0].Column.GetCellContent(item) as TextBlock).Text;
         DataGridGenre.ItemsSource       = fVM.GetGenre(int.Parse(ID));
         DataGridActeur.ItemsSource      = fVM.GetActorWithId(int.Parse(ID));
         DataGridRealisateur.ItemsSource = fVM.GetDirectorWithId(int.Parse(ID));
         FilmDTO film = new FilmDTO();
         film          = fVM.GetFilmswithId(int.Parse(ID)).First();
         Poster.Source = fVM.loadImage(film.Posterpath);
     }
 }