Example #1
0
 private void dgvBusqueda_KeyDown(object sender, KeyEventArgs e)
 {
     if (e.KeyCode == Keys.Enter || e.KeyCode == Keys.Return)
     {
         if (dgvBusqueda.SelectedCells.Count == 1)
         {
             Globals.IdInventario = Int32.Parse(dgvBusqueda.Rows[dgvBusqueda.SelectedCells[0].RowIndex].Cells["ID"].Value.ToString());
             HistoricoForm vHistorico = new HistoricoForm();
             vHistorico.Show();
         }
     }
 }
Example #2
0
        private void btnHistorico_Click(object sender, EventArgs e)
        {
            HistoricoForm form = new HistoricoForm(cbLogada);

            form.Show();
        }