private void ptc_MouseHover(object sender, EventArgs e) { if (zoomImg == null) { return; } zoomImg.SetImage(sender as PictureBox); }
private void ptcContent_MouseHover(object sender, EventArgs e) { int index = imageButtons.FindIndex(x => x == sender); if (index == -1) { return; } zoomImg.SetImage((sender as BunifuImageButton).Image); }
private void GridView_CellMouseEnter(object sender, DataGridViewCellEventArgs e) { if (e.RowIndex == -1) { return; } DataGridViewRow row = GridView.Rows[e.RowIndex]; if ((bool)row.Cells["isImage"].Value && e.ColumnIndex == 3) { zoomImg.SetImage(row.Cells["q_title"].FormattedValue.ToString()); } else { zoomImg.Visible = false; } }
public void ZoomImages(PictureBox ptc) { zoomImg.SetImage(ptc); }