Ejemplo n.º 1
0
        /// <summary>
        /// Handles the Tick event of the timer 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 static void Timer_Tick(object sender, EventArgs e)
        {
            if (postProcess.Count > 0)
            {
                var movie = postProcess[0];

                postProcess.Remove(movie);

                MovieDBFactory.ReplaceMovie(movie);
            }
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Handles the RunWorkerCompleted event of the bgwMulti control.
        /// </summary>
        /// <param name="sender">The source of the event.</param>
        /// <param name="e">The <see cref="System.ComponentModel.RunWorkerCompletedEventArgs"/> instance containing the event data.</param>
        private static void BgwMulti_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e)
        {
            for (int index = 0; index < postProcess.Count; index++)
            {
                var movie = postProcess[index];
                movie.IsBusy = false;
                MovieDBFactory.ReplaceMovie(movie);
            }

            postProcess.Clear();
        }