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 System.Text; using CMS.ExtendedControls; using CMS.GlobalHelper; using CMS.PortalControls; public partial class CMSWebParts_Wireframe_Forms_CheckBox : CMSAbstractWebPart { #region "Properties" /// /// Text /// public string Text { get { return ValidationHelper.GetString(this.GetValue("Text"), ""); } set { this.SetValue("Text", value); } } /// /// Checked /// public bool Checked { get { return ValidationHelper.GetBoolean(this.GetValue("Checked"), false); } set { this.SetValue("Checked", 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 { // Build the checkbox StringBuilder sb = new StringBuilder(); sb.Append(""); ltlChk.Text = sb.ToString(); ltlText.Text = Text; } } /// /// Reloads the control data. /// public override void ReloadData() { base.ReloadData(); SetupControl(); } }