Beispiel #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)
        {
            this.grdViewByTitle.RefreshData();

            var count = this.grdViewByTitle.SelectedRowsCount;

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