Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
 protected void OnAccessTokenReceived(object sender, AccessTokenReceivedArgs args)
 {
     if (AccessTokenReceived != null) AccessTokenReceived(sender, args);
 }