Esempio n. 1
0
        private void btnAddTwitterAccount_Click(object sender, EventArgs e)
        {
            OAuthTokenResponse RequestToken = TwitterHelper.TwitterHelper.InitiateAccountProvision();

            AddTwitterAccount dialog = new AddTwitterAccount();
            dialog.ShowDialog(this);

            string accountName = dialog.TwitterAccountName;
            string verificationString = dialog.TwitterVerificationString;

            TwitterHelper.TwitterHelper.CompleteAccountProvision(accountName, RequestToken, verificationString);

            accounts = SocialNetworkingFacade.GetAllAccounts();

            lbxTwitterAccounts.DataSource = (from account in accounts select account.AccountName).ToList();
        }
Esempio n. 2
0
        private void btnAddTwitterAccount_Click(object sender, EventArgs e)
        {
            OAuthTokenResponse RequestToken = TwitterHelper.TwitterHelper.InitiateAccountProvision();

            AddTwitterAccount dialog = new AddTwitterAccount();

            dialog.ShowDialog(this);

            string accountName        = dialog.TwitterAccountName;
            string verificationString = dialog.TwitterVerificationString;

            TwitterHelper.TwitterHelper.CompleteAccountProvision(accountName, RequestToken, verificationString);


            accounts = SocialNetworkingFacade.GetAllAccounts();

            lbxTwitterAccounts.DataSource = (from account in accounts select account.AccountName).ToList();
        }