コード例 #1
0
        private void ShowAccountDetails()
        {
            bool auth = oauthHelper.IsAuthenticated;

            lblAccountName.Text  = auth ? oauthHelper.GetAccountName() : "Anonymous";
            btnAuthenticate.Text = auth ? "&Sign Out" : "Authorize";
            btnAuthenticate.Tag  = auth ? "sign_out" : "auth";
        }