Пример #1
0
 private void dgvProducto_KeyDown(object sender, KeyEventArgs e)
 {
     if (e.KeyCode == Keys.Enter)
     {
         FrmPresentaciones f = new FrmPresentaciones();
         f.lblProducto.Text           = dgvProducto.CurrentRow.Cells[3].Value.ToString();
         FrmPresentaciones.IDProducto = dgvProducto.CurrentRow.Cells[0].Value.ToString();
         f.ShowDialog();
         txtBuscador.Focus();
     }
 }
Пример #2
0
 private void verPresentacionesToolStripMenuItem_Click(object sender, EventArgs e)
 {
     try
     {
         FrmPresentaciones f = new FrmPresentaciones();
         f.lblProducto.Text           = dgvProducto.CurrentRow.Cells[3].Value.ToString();
         FrmPresentaciones.IDProducto = dgvProducto.CurrentRow.Cells[0].Value.ToString();
         f.ShowDialog();
         txtBuscador.Focus();
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message, "FactuTED", MessageBoxButtons.OK, MessageBoxIcon.Warning);
     }
 }