private void dgvCrucero_CellMouseDoubleClick(object sender, DataGridViewCellMouseEventArgs e)
 {
     if (this.dgvCrucero.SelectedRows.Count == 1)
     {
         DataGridViewRow crucero = this.dgvCrucero.SelectedRows[0];
         dao.updateCruiseViaje((int)crucero.Cells["idCrucero"].Value, idViaje);
         this.Close();
     }
 }
 private void createCruise()
 {
     try
     {
         CheckEmptyFields();
         Crucero cruise = getFormData();
         if (this.dao.verifyCruiseExisted(cruise) != 0)
         {
             throw new Exception("El Crucero Ingresado ya existe");
         }
         this.dao.createCruise(cruise);
         this.idCrucero = this.dao.getIdCrucero(cruise);
         if (idViaje != -1)
         {
             dao.updateCruiseViaje(this.idCrucero, idViaje);
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message.ToString());
     }
 }