TraktRater.TraktRater.HideShowTraktAuthControls C# (CSharp) Method

HideShowTraktAuthControls() private method

private HideShowTraktAuthControls ( ) : void
return void
        private void HideShowTraktAuthControls()
        {
            // show username control for user/pass authentication method
            txtTraktUser.Visible = !AppSettings.TraktOAuth;
            lblTraktUser.Visible = !AppSettings.TraktOAuth;

            // hide password control for oAuth
            lblTraktPassword.Visible = !AppSettings.TraktOAuth;
            txtTraktPassword.Visible = !AppSettings.TraktOAuth;

            // show authorisation link for oAuth
            lnkTraktOAuth.Visible = AppSettings.TraktOAuth;

            // if we have a access token then allow user un-register
            lnkTraktOAuth.Text = string.IsNullOrEmpty(AppSettings.TraktOAuthToken) ? cTraktAuthorise : cTraktUnAuthorise;

            // show pin code text box if we have not authorised yet
            txtTraktPinCode.Text = cTraktPinCodeWaterMark;
            txtTraktPinCode.ForeColor = SystemColors.GrayText;
            txtTraktPinCode.Visible = string.IsNullOrEmpty(AppSettings.TraktOAuthToken) && AppSettings.TraktOAuth;

            // only show 15min warning when pin code is entered
            lblWarnPeriod.Visible = false;
        }
TraktRater