Ejemplo n.º 1
0
        protected override void OnPreRender(EventArgs e)
        {
            //  A call to the ResourceDispatcher to get have the automatic resources dispatched
            ResourceDispatcher.Dispatch(this, ResourceManagerUtility.GetResourceManager(this));

            base.OnPreRender(e);

            HtmlHeadAppender.Current.RegisterPageStylesheetLink();

            var key = GetType().FullName + "_Global";

            if (!HtmlHeadAppender.Current.IsRegistered(key))
            {
                HtmlHeadAppender.Current.RegisterStylesheetLink(key, "Html/global.css");
            }


            LiteralControl stack = new LiteralControl();

            StringBuilder sb = new StringBuilder();

            sb.Append("<br /><div>");
            sb.Append("<b>Stack:</b><br />");
            for (WxeStep step = CurrentPageStep; step != null; step = step.ParentStep)
            {
                sb.AppendFormat("{0}<br />", step.ToString());
            }
            sb.Append("</div>");
            stack.Text = sb.ToString();

            WxeControls.Add(stack);
        }
Ejemplo n.º 2
0
        protected override void OnPreRender(EventArgs e)
        {
            base.OnPreRender(e);

            HtmlHeadAppender.Current.RegisterPageStylesheetLink();

            //  A call to the ResourceDispatcher to get have the automatic resources dispatched
            ResourceDispatcher.Dispatch(this, ResourceManagerUtility.GetResourceManager(this));
        }
Ejemplo n.º 3
0
        protected override void OnPreRender(EventArgs e)
        {
            ResourceDispatcher.Dispatch(this, ResourceManagerUtility.GetResourceManager(this));

            if (!IsPostBack && InitialFocusControl != null)
            {
                SetFocus(InitialFocusControl);
            }

            base.OnPreRender(e);
        }
Ejemplo n.º 4
0
        protected override void OnPreRender(EventArgs e)
        {
            if (!CurrentFunction.TenantHandle.Equals(CurrentTenantHandle))
            {
                CurrentTenantHandle = CurrentFunction.TenantHandle;
                _hasTenantChanged   = true;
            }

            ResourceDispatcher.Dispatch(this, ResourceManagerUtility.GetResourceManager(this));

            base.OnPreRender(e);
        }
Ejemplo n.º 5
0
        protected override void OnPreRender(EventArgs e)
        {
            //  A call to the ResourceDispatcher to get have the automatic resources dispatched
            ResourceDispatcher.Dispatch(this, ResourceManagerUtility.GetResourceManager(this));

            HtmlHeadAppender.Current.RegisterPageStylesheetLink();

            var key = GetType().FullName + "_Global";

            if (!HtmlHeadAppender.Current.IsRegistered(key))
            {
                string href = ResolveClientUrl("~/Html/global.css");
                HtmlHeadAppender.Current.RegisterStylesheetLink(key, href);
            }

            base.OnPreRender(e);
        }
Ejemplo n.º 6
0
        protected override void OnPreRender(EventArgs e)
        {
            var    themedResourceUrlResolver = SafeServiceLocator.Current.GetInstance <IThemedResourceUrlResolverFactory> ().CreateResourceUrlResolver();
            string url = themedResourceUrlResolver.GetResourceUrl(this, ResourceType.Html, "Style.css");

            Remotion.Web.UI.HtmlHeadAppender.Current.RegisterStylesheetLink(GetType() + "remotionstyle", url);

            url = ResolveClientUrl("~/Html/style.css");
            Remotion.Web.UI.HtmlHeadAppender.Current.RegisterStylesheetLink(GetType() + "projectstyle", url);

            // globalization
            IResourceManager rm = ResourceManagerUtility.GetResourceManager(this);

            if (rm != null)
            {
                ResourceDispatcher.Dispatch(this, rm);
            }

            base.OnPreRender(e);
        }