/// <summary> /// Handles the FanartLoaded event of the MovieDBFactory 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 MovieDBFactory_FanartLoaded(object sender, EventArgs e) { var image = MovieDBFactory.LoadFanart(); if (image == null) { this.populateGallery = false; this.StopLoading(); this.imageMain.Image = image; return; } this.StopLoading(); this.imageMain.Image = image; }
/// <summary> /// Handles the FanartLoaded event of the MovieDBFactory 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 MovieDBFactory_FanartLoaded(object sender, EventArgs e) { var image = MovieDBFactory.LoadFanart(); if (image == null) { this.populateGallery = false; this.StopLoading(); this.imageMain.Image = image; return; } this.StopLoading(); this.imageMain.Image = image; if (this.populateGallery) { this.galleryControl.Gallery.Groups.Add(MovieDBFactory.GetCurrentMovie().FanartAltGallery); this.populateGallery = false; } }