protected virtual void WizardFormWizardPageChanged(object sender, AuthenticationWizardPageChangedEventArgs e)
        {
            if (e.CurrentPage != this.WizardPageId)
            {
                return;
            }

            this.WizardForm.ButtonBack.Disabled = true;
        }
        protected virtual void WizardFormWizardPageChanged(object sender, AuthenticationWizardPageChangedEventArgs e)
        {
            if (e.CurrentPage != this.WizardPageId)
            {
                return;
            }

            this.ScopeYouTube.Checked         = true;
            this.ScopeYouTubeForceSsl.Checked = true;
            this.ScopeYouTubeReadOnly.Checked = true;
            this.ScopeYouTubeUpload.Checked   = (bool)this.WizardForm.ServerProperties[Constants.ServerProperties.ScopeYouTubeUpload];
            this.ScopeYouTubePartner.Checked  = true;
        }
Пример #3
0
        protected virtual void WizardFormWizardPageChanged(object sender, AuthenticationWizardPageChangedEventArgs e)
        {
            if (e.CurrentPage != this.WizardPageId)
            {
                return;
            }

            this.ClientId.Value     = this.WizardForm.ServerProperties[Constants.ServerProperties.ClientId] != null ? this.WizardForm.ServerProperties[Constants.ServerProperties.ClientId].ToString() : string.Empty;
            this.ClientSecret.Value = this.WizardForm.ServerProperties[Constants.ServerProperties.ClientSecret] != null ? this.WizardForm.ServerProperties[Constants.ServerProperties.ClientSecret].ToString() : string.Empty;

            this.OnClientInformationChanged();

            if (string.IsNullOrEmpty(this.ClientId.Value))
            {
                Sitecore.Context.ClientPage.ClientResponse.Focus(this.ClientId.ID);
            }
        }