Exemplo n.º 1
0
        private void btnNuevo_Click(object sender, EventArgs e)
        {
            AddTripulacion addTripulacion = new AddTripulacion();

            addTripulacion.ShowDialog();
            ActualizaTabla();
        }
Exemplo n.º 2
0
 private void dataTripulacion_CellContentDoubleClick(object sender, DataGridViewCellEventArgs e)
 {
     if (e.RowIndex != -1)
     {
         DataGridViewRow Renglon    = dataTripulacion.Rows[e.RowIndex];
         string          sql_where  = ("where idEnvio=@id");
         List <string>   parametros = new List <string>();
         List <object>   valores    = new List <object>();
         parametros.Add("@id");
         valores.Add(Renglon.Cells["ID Envio"].Value);
         Modelo.Tripulacion tripulacion    = tripulacionDAO.ConsultaGeneral(sql_where, parametros, valores)[0];
         AddTripulacion     addTripulacion = new AddTripulacion(tripulacion);
         addTripulacion.ShowDialog();
         actualizarTabla();
     }
     else
     {
         Mensajes.Error("Selecciona un registro");
     }
 }