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_Dialog: CMSAbstractWebPart
{
#region "Properties"
///
/// Title
///
public string Title
{
get
{
return ValidationHelper.GetString(this.GetValue("Title"), "Enter title");
}
set
{
this.SetValue("Title", value);
}
}
///
/// Text
///
public string Text
{
get
{
return ValidationHelper.GetString(this.GetValue("Text"), "Enter dialog text");
}
set
{
this.SetValue("Text", value);
}
}
///
/// Buttons
///
public string Buttons
{
get
{
return ValidationHelper.GetString(this.GetValue("Buttons"), "Yes\nNo");
}
set
{
this.SetValue("Buttons", value);
}
}
#endregion
#region "Methods"
///
/// 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.Text = Text;
ltlTitle.Text = Title;
ltlButtons.Text = Buttons;
ltlButtons.ItemFormat = "
{0}";
// Height
string h = WebPartHeight;
if (!String.IsNullOrEmpty(h))
{
pnlDialog.Height = new Unit(h);
}
// Width
string w = WebPartWidth;
if (!String.IsNullOrEmpty(w))
{
pnlDialog.Width = new Unit(w);
}
resElem.ResizedElementID = pnlDialog.ClientID;
}
}
///
/// Reloads the control data.
///
public override void ReloadData()
{
base.ReloadData();
SetupControl();
}
#endregion
}