public void Stop() { _rs28Device?.Close(); _deviceListener.Stop(); _deviceListener.DeviceDisconnected -= DevicePoller_DeviceDisconnected; _deviceListener.DeviceInitialized -= DevicePoller_DeviceInitialized; }
private void FormMain_FormClosing(object sender, FormClosingEventArgs e) { if (_deviceListener.IsActive) { SetStatus("Stop device listener .."); _deviceListener.Stop(); } SetStatus("Done"); }
public void Dispose() { if (_disposed) { return; } _disposed = true; _Lock.Dispose(); _DeviceListener.Stop(); _DeviceListener.Dispose(); foreach (var trezorManager in TrezorManagers) { trezorManager.Dispose(); } GC.SuppressFinalize(this); }
public void Dispose() { if (disposed) { return; } disposed = true; _Lock.Dispose(); _DeviceListener.Stop(); _DeviceListener.Dispose(); foreach (var LedgerManager in LedgerManagers) { LedgerManager.Dispose(); } GC.SuppressFinalize(this); }
public void Stop() => _DeviceListener?.Stop();