/// <summary> /// Event Handler que permite recibir los datos reportados por el SerialPortManager para su utilizacion /// </summary> /// <param name="sender"></param> /// <param name="e"></param> void spManager_NewSerialDataRecievedRFID(object sender, SerialDataEventArgs e) { try { string strEnd = spManagerRFID.ObtenerLeturaRFID(e.Data); if (strEnd.Trim() == string.Empty) { return; } rfidCapturadoGlobal = strEnd; //Aquie es para que se este reflejando la lectura en el display Dispatcher.BeginInvoke(new Action(CapturarAreteRFID), DispatcherPriority.Background); } catch (FormatException ex) { Logger.Error(ex); SkMessageBox.Show(Application.Current.Windows[ConstantesVista.WindowPrincipal], Properties.Resources.CorteGanado_ErrorCapturaRFID, MessageBoxButton.OK, MessageImage.Error); } catch (Exception ex) { Logger.Error(ex); SkMessageBox.Show(Application.Current.Windows[ConstantesVista.WindowPrincipal], Properties.Resources.CorteGanado_ErrorCapturaRFID, MessageBoxButton.OK, MessageImage.Error); } }