private void btnShowIMG_Click(object sender, EventArgs e) { try { Frm_ProductImage a = new Frm_ProductImage(txtID.Text, "Managment"); a.ShowDialog(); } catch (Exception) { MessageBox.Show("Double Cilck On Product Please."); } }
private void dgvProduct_DoubleClick(object sender, EventArgs e) { try { Frm_ProductImage a = new Frm_ProductImage(dgvProduct.CurrentRow.Cells[0].Value.ToString(), "Normal"); a.ShowDialog(); } catch (Exception) { } }