private void btnSearch_Click(object sender, EventArgs e) { var mediaDetails = new MediaDetails(); PopulateMediaDetails(mediaDetails); string responseFromServer = GetDetailsFromWeb(Settings.OmdbUrl + mediaDetails.BuildUrlParams(true)); SetMoviesList(responseFromServer); }
private void GetMovieDetails(bool shortPlot) { var mediaDetails = new MediaDetails(); PopulateMediaDetails(mediaDetails); string responseFromServer = GetDetailsFromWeb(Settings.OmdbUrl + mediaDetails.BuildUrlParams(false, shortPlot)); lvMovies.Items.Clear(); SetMovieDetails(responseFromServer); lvMovies.Visible = false; }
private void SearchFromFile(string initialSearchTxt) { helper.Applied = false; helper.MediaPath = initialSearchTxt; helper.IsDirectory = Directory.Exists(helper.MediaPath); helper.IsFile = File.Exists(helper.MediaPath); var mediaDetails = new MediaDetails(helper.MediaPath, helper.ShowsConversionTable); helper.IsEpisode = mediaDetails.IsEpisode; helper.SeasonNumber = mediaDetails.Season.ToString(); helper.EpisodeNumber = mediaDetails.Episode.ToString(); GetDetailsFromWebAsync(Settings.OmdbUrl + mediaDetails.BuildUrlParams(false)); lvMovies.Visible = false; }