Пример #1
0
 private void ShowMovieButton_Click(object sender, RoutedEventArgs e)
 {
     if (Search_Results.SelectedIndex == -1)
     {
         MessageBox.Show("Nie wybrano żadnego filmu");
     }
     else
     {
         SearchingMoviesList selected = Search_Results.Items[Search_Results.SelectedIndex] as SearchingMoviesList;
         int         index            = ListOfMovies.FindIndex(a => a.Title == selected.Title);
         MovieWindow Movie            = new MovieWindow(ListOfMovies[index].IdMovie, Reloading, this);
         Movie.ShowDialog();
     }
 }
Пример #2
0
        private void MovieImage3_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
        {
            MovieWindow Movie = new MovieWindow(MovieID[2], Reloading);

            Movie.ShowDialog();
        }