示例#1
0
        /// <summary>
        /// Handles the Click event of the btnLoadFromWeb control.
        /// </summary>
        /// <param name="sender">The source of the event.</param>
        /// <param name="e">The <see cref="System.EventArgs"/> instance containing the event data.</param>
        private void btnLoadFromWeb_Click(object sender, EventArgs e)
        {
            MovieDBFactory.InvokeCurrentMovieValueChanged(new EventArgs());

            var count = MovieDBFactory.MovieDatabase.Count;

            if (count == 1)
            {
                Factories.Scraper.MovieScrapeFactory.RunSingleScrape(MovieDBFactory.GetCurrentMovie());
            }
            else if (count > 1)
            {
                Factories.Scraper.MovieScrapeFactory.RunMultiScrape(MovieDBFactory.MultiSelectedMovies);
            }
        }