using System;
using System.Data;
using System.Collections;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;
using CMS.CMSHelper;
using CMS.GlobalHelper;
using CMS.PortalControls;
using CMS.PortalEngine;
using CMS.WorkflowEngine;
using CMS.DocumentEngine;
using TreeNode = CMS.DocumentEngine.TreeNode;
public partial class CMSWebParts_Wireframe_Layouts_NextLevel : CMSAbstractWebPart
{
///
/// Constructor
///
public CMSWebParts_Wireframe_Layouts_NextLevel()
{
HideHeader = true;
}
///
/// Content loaded event handler.
///
public override void OnContentLoaded()
{
base.OnContentLoaded();
SetupControl();
}
///
/// Initializes the control properties.
///
protected void SetupControl()
{
if (StopProcessing)
{
// Do nothing
}
else
{
partPlaceholder.ID = ID;
if (PortalHelper.IsDesignMode(CMSContext.ViewMode))
{
pnlClass.CssClass = "WireframeNextPageLevel";
if (PortalHelper.IsDesignMode(this.ViewMode))
{
pnlLevel.CssClass = "WireframeNextPageLevelWebPart";
}
}
// Apply width / height
string height = WebPartHeight;
if (!String.IsNullOrEmpty(height))
{
pnlLevel.Style.Add("height", height);
}
string width = WebPartWidth;
if (!String.IsNullOrEmpty(width))
{
pnlLevel.Style.Add("width", width);
}
resElem.ResizedElementID = pnlLevel.ClientID;
}
}
protected override void OnPreRender(EventArgs e)
{
base.OnPreRender(e);
if (partPlaceholder.PageInfo == null)
{
this.lblNextLevel.Visible = true;
//pnlClass.CssClass = "WireframeNextPageLevel";
}
}
}