App_Code.Controls.WidgetContainer.ProcessLoad C# (CSharp) Method

ProcessLoad() public method

Manually run the Initialization process.
public ProcessLoad ( ) : void
return void
        public void ProcessLoad()
        {
            if (_processedLoad) { return; }

            // phWidgetBody is the control that the Widget control
            // gets added to.
            var widgetBody = this.FindControl("phWidgetBody");

            if (widgetBody != null)
            {
                widgetBody.Controls.Add(this.Widget);
            }
            else
            {
                var warn = new LiteralControl
                {
                    Text = "Unable to find control with id \"phWidgetBody\" in theme's WidgetContainer."
                };
                this.Controls.Add(warn);
            }

            _processedLoad = true;
        }