private void ConnectClicked() { // connect var version = 0; DeviceModel.USBConnect(ref version); if (!DeviceModel.DeviceDetected) { return; } OnPropertyChanged("IsConnected"); OnConnected(version); // read settings var settingsData = DeviceModel.ReadSettings(); if (settingsData != null) { ConvertSettings(settingsData); } // then queue call to read bulk data DeviceModel.ReadBulkData(); }