コード例 #1
0
ファイル: ImpinjControlService.cs プロジェクト: cyysu/rfid
 public void stopInventory()
 {
     try
     {
         if (connected && started)
         {
             _readerSettings.Stop_ROSpec(_currentSpecID);
             _readerSettings.Disable_ROSpec(_currentSpecID);
             started = false;
             Console.WriteLine("status:connected");
         }
     }
     catch (Exception e)
     {
         Console.WriteLine(e.ToString());
     }
 }
コード例 #2
0
        public void StopInventory()
        {
            cbAlgorithms.Enabled   = true;
            gbHologram.Enabled     = true;
            gbSearchRegion.Enabled = true;
            gbAntennaTrack.Enabled = true;

            btnHolographicsConfirm.Enabled = true;

            //try
            //{
            //    _th.Abort();
            //}
            //catch (Exception)
            //{
            //    throw;
            //}

            _readerSettings.Stop_ROSpec(_currentSpecID);

            ClearUI();
        }