/// <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); } }
private void ShowLinkButtonBack() { LinkButtonBack.Visible = true; MagicForm.RegisterStyleSheet(this.Page); }
/// <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); }