private void buttonMoreDetails_Click(object sender, EventArgs e) { detailedView = new DetailedView(); passMovieDetails(SelectedItemID); detailedView.Show(); }
private void listBoxFavorites_SelectedDoubleClick(object sender, MouseEventArgs e) { Movie movie = (Movie)listBoxFavorites.SelectedItem; SelectedItemID = movie.imdbID; detailedView = new DetailedView(); passMovieDetails(SelectedItemID); detailedView.Show(); }
private void GetMoviebyTitleAndYear(string Title, string Year) { var caller = new RestSharpCaller("http://www.omdbapi.com/?apikey=5d4834e7&"); var movies = caller.GetMoviesByTitleYear(Title, Year); detailedView = new DetailedView(); if (movies.Response == "True") { passMovieDetails(movies.Search[0].imdbID); detailedView.Show(); } else { MessageBox.Show("Movie not found"); } }