public void UpdateControls() { btnConnect.IsEnabled = Bluetooth.isBluetoothDisconnected(); btnDisconnect.IsEnabled = !Bluetooth.isBluetoothDisconnected(); btnSelect.IsEnabled = Bluetooth.isBluetoothDisconnected(); btnLog.IsEnabled = !Bluetooth.isBluetoothDisconnected() && oUserSetting.GetLoggingEnabled(); }