private void dgvData_DoubleClick(object sender, EventArgs e) { if (dgvData.RowCount > 0) { VariablesGlobales.NroX = 1; VariablesGlobales.NroFuaX = int.Parse(dgvData.CurrentRow.Cells[0].Value.ToString()); FrmFuaDetalle objFrmFuaDet = new FrmFuaDetalle(); objFrmFuaDet.ShowDialog(); } else { VariablesGlobales.NroX = 0; } }
void EnviarData() { if (dgvAtencion.RowCount > 0) { VariablesGlobales.NroX = 1; VariablesGlobales.NroFuaX = int.Parse(dgvAtencion.CurrentRow.Cells[0].Value.ToString()); FrmFuaDetalle objFrmFuaDet = new FrmFuaDetalle(); objFrmFuaDet.ShowDialog(); } else { VariablesGlobales.NroX = 0; } }