void f_AccessTokenReceived(object sender, AccessTokenReceivedArgs args) { string authToken = args.Token.Token; token = Authorization.GetAccessToken(settings.ApiUri, authToken, settings.ClientId, settings.ClientSecret, settings.RedirectUri); lblConnectedUser.Text = token.UserId; lblStatus.Text = "Connected"; lblStatus.ForeColor = Color.Green; EnableFormButtons(true); }
protected void OnAccessTokenReceived(object sender, AccessTokenReceivedArgs args) { if (AccessTokenReceived != null) AccessTokenReceived(sender, args); }