Exemplo n.º 1
0
 public EditMovieWindow(int nIdMovie, ReloadMovies reload, MovieWindow movie)
 {
     this.Moviewindow = movie;
     this.Reloading   = reload;
     this.IdMovie     = nIdMovie;
     InitializeComponent();
     LoadCategories();
     LoadMovie();
 }
Exemplo n.º 2
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();
     }
 }
Exemplo n.º 3
0
        private void MovieImage3_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
        {
            MovieWindow Movie = new MovieWindow(MovieID[2], Reloading);

            Movie.ShowDialog();
        }