private void RefreshInstrumentsList() { if (!_client.Connected) { return; } if (_instrumentsList.Count == 0 || (DateTime.Now - _lastInstrumentsListRefresh).TotalSeconds > 10) { _instrumentsList = _client.GetAllInstruments(); _lastInstrumentsListRefresh = DateTime.Now; } }