private async void DeauthorizeDevicesCommandHandlerAsync(object obj) { IsBusy = true; try { // Log in and get access token await KryptPadApi.DeauthorizeDevices(); // Navigate to the login page NavigationHelper.Navigate(typeof(LoginPage), null, NavigationHelper.NavigationType.Root); } catch (WebException ex) { await DialogHelper.ShowMessageDialogAsync(ex.Message); } catch (Exception ex) { // Failed await DialogHelper.ShowGenericErrorDialogAsync(ex); } IsBusy = false; }