protected override void CreateChildControls()
        {
            PanelTitleTemplateContainer  panelTitleTemplateContainer  = null;
            PanelBodyTemplateContainer   panelBodyTemplateContainer   = null;
            PanelTableTemplateContainer  panelTableTemplateContainer  = null;
            PanelFooterTemplateContainer panelFooterTemplateContainer = null;

            if (this.TitleTemplate != null && this.ShowPanelTitle)
            {
                panelTitleTemplateContainer = new PanelTitleTemplateContainer();
                this.TitleTemplate.InstantiateIn(panelTitleTemplateContainer);
                Controls.Add(panelTitleTemplateContainer);
            }

            if (this.BodyTemplate != null && this.ShowPanelBody)
            {
                panelBodyTemplateContainer = new PanelBodyTemplateContainer();
                this.BodyTemplate.InstantiateIn(panelBodyTemplateContainer);
                Controls.Add(panelBodyTemplateContainer);
            }

            if (this.TableTemplate != null)
            {
                panelTableTemplateContainer = new PanelTableTemplateContainer();
                this.TableTemplate.InstantiateIn(panelTableTemplateContainer);
                Controls.Add(panelTableTemplateContainer);
            }

            if (this.FooterTemplate != null && this.ShowPanelFooter)
            {
                panelFooterTemplateContainer = new PanelFooterTemplateContainer();
                this.FooterTemplate.InstantiateIn(panelFooterTemplateContainer);
                Controls.Add(panelFooterTemplateContainer);
            }
        }
        protected override void CreateChildControls()
        {
            PanelTitleTemplateContainer panelTitleTemplateContainer = null;
            PanelBodyTemplateContainer panelBodyTemplateContainer = null;
            PanelTableTemplateContainer panelTableTemplateContainer = null;
            PanelFooterTemplateContainer panelFooterTemplateContainer = null;

            if (this.TitleTemplate != null && this.ShowPanelTitle)
            {
                panelTitleTemplateContainer = new PanelTitleTemplateContainer();
                this.TitleTemplate.InstantiateIn(panelTitleTemplateContainer);
                Controls.Add(panelTitleTemplateContainer);
            }

            if (this.BodyTemplate != null && this.ShowPanelBody)
            {
                panelBodyTemplateContainer = new PanelBodyTemplateContainer();
                this.BodyTemplate.InstantiateIn(panelBodyTemplateContainer);
                Controls.Add(panelBodyTemplateContainer);
            }

            if (this.TableTemplate != null)
            {
                panelTableTemplateContainer = new PanelTableTemplateContainer();
                this.TableTemplate.InstantiateIn(panelTableTemplateContainer);
                Controls.Add(panelTableTemplateContainer);
            }

            if (this.FooterTemplate != null && this.ShowPanelFooter)
            {
                panelFooterTemplateContainer = new PanelFooterTemplateContainer();
                this.FooterTemplate.InstantiateIn(panelFooterTemplateContainer);
                Controls.Add(panelFooterTemplateContainer);
            }
        }