コード例 #1
0
        private void buttonMoreDetails_Click(object sender, EventArgs e)
        {
            detailedView = new DetailedView();

            passMovieDetails(SelectedItemID);

            detailedView.Show();
        }
コード例 #2
0
        private void listBoxFavorites_SelectedDoubleClick(object sender, MouseEventArgs e)
        {
            Movie movie = (Movie)listBoxFavorites.SelectedItem;

            SelectedItemID = movie.imdbID;
            detailedView   = new DetailedView();
            passMovieDetails(SelectedItemID);

            detailedView.Show();
        }
コード例 #3
0
        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");
            }
        }