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_Forms_ColorPicker: CMSAbstractWebPart { #region "Properties" /// /// Color /// public string Color { get { return ValidationHelper.GetString(this.GetValue("Color"), "#0f0"); } set { this.SetValue("Color", 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 { colElem.Color = Color; } } /// /// Reloads the control data. /// public override void ReloadData() { base.ReloadData(); SetupControl(); } }