}// </editor-fold>//GEN-END:initComponents
private void btnDownloadProductsActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnDownloadProductsActionPerformed
// Ejecutamos la descarga...
DeviceScanner s = m_App.getDeviceScanner();
try {
s.connectDevice();
s.startDownloadProduct();
ProductDownloaded p = s.recieveProduct();
while (p != null) {
incProductByCode(p.getCode(), p.getQuantity());
p = s.recieveProduct();
}
// MessageInf msg = new MessageInf(MessageInf.SGN_SUCCESS, "Se ha subido con exito la lista de productos al ScanPal.");
// msg.show(this);
} catch (DeviceScannerException e) {
MessageInf msg = new MessageInf(MessageInf.SGN_WARNING, AppLocal.getIntString("message.scannerfail2"), e);
msg.show(this);
} finally {
s.disconnectDevice();
}
}//GEN-LAST:event_btnDownloadProductsActionPerformed