/// <summary> /// Updates the movie details in a background thread using the preferred dataprovider. /// </summary> /// <param name="movie"></param> private void updateMovieDetails(DBMovieInfo movie) { bool bConfirm = ShowCustomYesNo(Translation.UpdateMovieDetailsHeader, Translation.UpdateMovieDetailsBody, null, null, false); if (bConfirm && movie != null) { MovieUpdateWorker updater = new MovieUpdateWorker(movieDetailsUpdateWorker); updater.BeginInvoke(movie, new AsyncCallback(movieDetailsUpdateFinished), updater); } }
/// <summary> /// Updates the movie artwork in a background thread using the preferred dataprovider. /// </summary> /// <param name="movie"></param> private void updateMovieArtwork(DBMovieInfo movie) { if (movie != null) { MovieUpdateWorker updater = new MovieUpdateWorker(movieArtworkUpdateWorker); updater.BeginInvoke(movie, new AsyncCallback(movieArtworkUpdateFinished), updater); } }