private void Instance_QRCodeRemoved(object sender, QRCodeEventArgs <QRCodesTrackerPlugin.QRCode> e) { lock (pendingActions) { pendingActions.Enqueue(new ActionData(ActionData.Type.Removed, e.Data)); } }
private void Instance_QRCodeRemoved(object sender, QRCodeEventArgs <QRCodesTrackerPlugin.QRCode> e) { if (qrCodeId == e.Data.Id) { qrCodeId = System.Guid.Empty; updatedId = true; } }
private void Instance_QRCodeUpdated(object sender, QRCodeEventArgs <QRCodesTrackerPlugin.QRCode> e) { if (qrCodeId == System.Guid.Empty) { if (e.Data.Code == QRCodeData) { qrCodeId = e.Data.Id; updatedId = true; } } }
private void QrTracker_Added(QRCodeAddedEventArgs args) { lock (qrCodesList) { qrCodesList.Add(args.Code.Id, args.Code); } var handlers = QRCodeAdded; if (handlers != null) { handlers(this, QRCodeEventArgs.Create(args.Code)); } }
private void QrTracker_Updated(QRCodeUpdatedEventArgs args) { lock (qrCodesList) { qrCodesList[args.Code.Id] = args.Code; } var handlers = QRCodeUpdated; if (handlers != null) { handlers(this, QRCodeEventArgs.Create(args.Code)); } }