private async void Disconnect_OnClicked(object sender, EventArgs e) { await _connection.DeauthorizeApplicationAsync(); OutputLabel.Text = "Deleted connection information."; ConnectedButtons.IsVisible = false; }
private async void DisconnectButtonOnClick(object sender, EventArgs eventArgs) { await _connection.DeauthorizeApplicationAsync(); _statusView.Text = "Disconnected."; _connectionButton.Visibility = ViewStates.Visible; _disconnectButton.Visibility = ViewStates.Gone; _controlsLayout.Visibility = ViewStates.Gone; }
private async Task DisconnectFromHealthVaultAsync() { controlView.Hidden = true; activityIndicator.StartAnimating(); UpdateTitle("Disconnecting..."); try { await _connection.DeauthorizeApplicationAsync(); _thingClient = null; _connection = null; connectButton.SetTitle("Connect", UIControlState.Normal); UpdateTitle("Not Connected"); SetStatusLabelText(notConnectedMessage); } catch (Exception e) { UpdateTitle("Error"); SetStatusLabelText(e.ToString()); connectButton.SetTitle("Retry", UIControlState.Normal); } }
private async void DeleteConnectionInfo_OnClick(object sender, RoutedEventArgs e) { await _connection.DeauthorizeApplicationAsync(); OutputBlock.Text = "Deleted connection information."; }