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;
}