private void BtnEditar_Click_1(object sender, EventArgs e)
        {
            FrmPasajeros editarregistros = new FrmPasajeros();

            editarregistros.FormClosed += new FormClosedEventHandler(ActualizarDatos);
            if (dataListado.SelectedRows.Count > 0)
            {
                Program.evento = 1;
                editarregistros.txtCodigo.Text       = dataListado.CurrentRow.Cells[0].Value.ToString();
                editarregistros.txtApellidos.Text    = dataListado.CurrentRow.Cells[1].Value.ToString();
                editarregistros.txtNombres.Text      = dataListado.CurrentRow.Cells[2].Value.ToString();
                editarregistros.txtDni.Text          = dataListado.CurrentRow.Cells[3].Value.ToString();
                editarregistros.txtAscenso.Text      = dataListado.CurrentRow.Cells[4].Value.ToString();
                editarregistros.txtTelefonos.Text    = dataListado.CurrentRow.Cells[5].Value.ToString();
                editarregistros.txtNacionalidad.Text = dataListado.CurrentRow.Cells[6].Value.ToString();
                editarregistros.txtMayor.Text        = dataListado.CurrentRow.Cells[7].Value.ToString();
                editarregistros.txtFecha.Text        = dataListado.CurrentRow.Cells[8].Value.ToString();
                editarregistros.txtDestino.Text      = dataListado.CurrentRow.Cells[9].Value.ToString();
                editarregistros.txtGrupo.Text        = dataListado.CurrentRow.Cells[10].Value.ToString();

                editarregistros.ShowDialog();
            }
            else
            {
                MensajeError("Seleccione la Fila a Editar ");
            }
        }
        private void BtnNuevo_Click_1(object sender, EventArgs e)
        {
            FrmPasajeros nuevoregistro = new FrmPasajeros();

            nuevoregistro.FormClosed += new FormClosedEventHandler(ActualizarDatos);
            nuevoregistro.ShowDialog();
            nuevoregistro.Dispose();
        }