private void Instance_QRCodeRemoved(object sender, QRCodeEventArgs <QRCodesTrackerPlugin.QRCode> e)
 {
     lock (pendingActions)
     {
         pendingActions.Enqueue(new ActionData(ActionData.Type.Removed, e.Data));
     }
 }
示例#2
0
 private void Instance_QRCodeRemoved(object sender, QRCodeEventArgs <QRCodesTrackerPlugin.QRCode> e)
 {
     if (qrCodeId == e.Data.Id)
     {
         qrCodeId  = System.Guid.Empty;
         updatedId = true;
     }
 }
示例#3
0
 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;
         }
     }
 }
示例#4
0
        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));
            }
        }
示例#5
0
        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));
            }
        }