private void InfoPoster_MouseLeave(object sender, EventArgs e) { try { infoPoster.BackgroundImage.Dispose(); infoPoster.BackgroundImage = UtilityTools.SetAlpha((Bitmap)infoPoster2.Image, 255); } catch { infoPoster.BackgroundImage = UtilityTools.SetAlpha(WebCrunch.Properties.Resources.poster_default, 255); } }
private void ctrlMovieDetails_Load(object sender, EventArgs e) { if (TrailerURL == "") { btnWatchTrailer.Visible = false; } if (PosterURL == "") { imgPoster.Image = UtilityTools.SetAlpha(WebCrunch.Properties.Resources.poster_default, 255); } panelTitleFiles.Size = new Size(panelDetails.Size.Width, panelTitleFiles.Size.Height); panelStreams.Size = new Size(panelDetails.Size.Width, panelStreams.Size.Height); foreach (Control ctrl in panelStreams.Controls) { ctrl.Size = new Size(panelDetails.Size.Width - 3, ctrl.Size.Height); } }
private void InfoPoster_MouseEnter(object sender, EventArgs e) { try { if (!(infoPoster2.Image == null)) { infoPoster2.Image.Dispose(); } infoPoster2.Image = new Bitmap(infoPoster.BackgroundImage); infoPoster.BackgroundImage.Dispose(); infoPoster.BackgroundImage = UtilityTools.SetAlpha((Bitmap)infoPoster2.Image, 100); Update(); } catch { infoPoster.BackgroundImage = UtilityTools.SetAlpha(WebCrunch.Properties.Resources.poster_default, 255); } }
private void InfoPoster_ClickButtonArea(object Sender, MouseEventArgs e) { MainForm.form.tabBlank.Controls.Clear(); MovieDetails MovieDetails = new MovieDetails(); MovieDetails.infoTitle.Text = infoTitle.Text; MovieDetails.infoYear.Text = infoYear.Text; MovieDetails.infoGenre.Text = infoGenres; MovieDetails.infoSynopsis.Text = infoSynopsis; MovieDetails.infoRuntime.Text = infoRuntime; MovieDetails.infoRated.Text = infoRated; MovieDetails.infoDirector.Text = infoDirector; MovieDetails.infoCast.Text = infoCast; MovieDetails.infoRatingIMDb.Text = infoImdbRating; MovieDetails.ImdbId = infoImdbId; MovieDetails.TrailerURL = infoTrailer; MovieDetails.FanartURL = infoImageFanart; MovieDetails.PosterURL = infoImagePoster; try { if (infoImagePoster != "") { MovieDetails.imgPoster.Image = UtilityTools.SetAlpha(UtilityTools.LoadPicture(infoImagePoster), 255); } if (infoImageFanart != "") { MovieDetails.BackgroundImage = UtilityTools.SetAlpha(UtilityTools.LoadPicture(infoImageFanart), 50); } } catch (Exception ex) { MessageBox.Show(ex.Message + "\n\n" + infoImageFanart); } foreach (var movieLink in infoMovieStreams) { MovieDetails.AddStream(movieLink, false, MovieDetails.panelStreams); } MovieDetails.Dock = DockStyle.Fill; MainForm.form.tabBlank.Controls.Clear(); MainForm.form.tabBlank.Controls.Add(MovieDetails); MainForm.form.tab.SelectedTab = MainForm.form.tabBlank; }