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()); } }
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(); }