private void dgvLista_DoubleClick(object sender, EventArgs e) { INTERNACION.Frm_Internacion_Registrar f = (INTERNACION.Frm_Internacion_Registrar)Owner; f.txtcodigoFuncionario.Text = dgvLista.CurrentRow.Cells[0].Value.ToString(); f.txtnombreFuncionario.Text = dgvLista.CurrentRow.Cells[1].Value.ToString(); // f.txttelefonoPaciente.Text = dgvLista.CurrentRow.Cells[2].Value.ToString(); Program.isnuevo = true; this.Close(); }
private void dgvLista_DoubleClick(object sender, EventArgs e) { INTERNACION.Frm_Internacion_Registrar f = (INTERNACION.Frm_Internacion_Registrar)Owner; f.txtcodigopaciente.Text = dgvLista.CurrentRow.Cells[0].Value.ToString(); f.txtnombrepaciente.Text = dgvLista.CurrentRow.Cells[1].Value.ToString(); f.txtfecha_nacicmeintoPaciente.Text = dgvLista.CurrentRow.Cells[2].Value.ToString(); Program.Seleccionar_Paciente = false; Program.isnuevo = true; this.Close(); }