示例#1
0
        /// <summary>
        /// Raises the System.Web.UI.Control.PreRender event and registers the style sheet of the control.
        /// </summary>
        /// <param name="e">An System.EventArgs object that contains the event data.</param>
        protected override void OnPreRender(EventArgs e)
        {
            base.OnPreRender(e);

            ResourceProvider.RegisterStyleSheetResource(this, "Styles.Settings.css", "SettingsStyleSheet", false);
            MagicForm.RegisterStyleSheet(this.Page);

            if (!m_IsModernTheme)
            {
                ScriptManager.RegisterClientScriptBlock(this.Page, this.Page.GetType(), "ToggleOnOffSwitchClientScript", this.ToggleOnOffSwitchClientScript, true);
            }

            if (this.DisplayedSettingLevel != SettingLevels.Group)
            {
                CommandBar.Visible = (this.Settings.Count > 1);
            }
        }
示例#2
0
 private void ShowLinkButtonBack()
 {
     LinkButtonBack.Visible = true;
     MagicForm.RegisterStyleSheet(this.Page);
 }
示例#3
0
        /// <summary>
        /// Raises the System.Web.UI.Control.PreRender event and registers the style sheet of the control.
        /// </summary>
        /// <param name="e">An System.EventArgs object that contains the event data.</param>
        protected override void OnPreRender(EventArgs e)
        {
            base.OnPreRender(e);

            MagicForm.RegisterStyleSheet(this.Page);
        }