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.ExtendedControls;
using CMS.GlobalHelper;
using CMS.PortalControls;
public partial class CMSWebParts_Wireframe_Components_List : CMSAbstractWebPart
{
#region "Properties"
///
/// Text
///
public string Items
{
get
{
return ValidationHelper.GetString(this.GetValue("Items"), "Home\nProducts\nXYZ");
}
set
{
this.SetValue("Items", value);
ltlText.Text = value;
}
}
///
/// List type
///
public string Type
{
get
{
return ValidationHelper.GetString(this.GetValue("Type"), "");
}
set
{
this.SetValue("Type", value);
}
}
#endregion
///
/// Content loaded event handler.
///
public override void OnContentLoaded()
{
base.OnContentLoaded();
SetupControl();
}
///
/// Initializes the control properties.
///
protected void SetupControl()
{
if (StopProcessing)
{
// Do not process
}
else
{
ltlText.ItemFormat = "
{0}";
string type = this.Type;
if (!String.IsNullOrEmpty(type))
{
ltlText.RenderAsTag = "ol";
if (type != "1")
{
ltlText.Attributes += " type=\"" + type + "\"";
}
}
ltlText.Text = Items;
}
}
///
/// Reloads the control data.
///
public override void ReloadData()
{
base.ReloadData();
SetupControl();
}
}