public void toggleBluetooth() { if (bluetooth.IsEnabled) { bluetooth.Stop(); bluetooth.Disable(); } else { bluetooth.Enable(); } }