using CMS.GlobalHelper; using CMS.PortalControls; public partial class CMSWebParts_Messaging_IgnoreList : CMSAbstractWebPart { #region "Public properties" /// /// Gets or sets the text which is displayed when no data found. /// public string ZeroRowsText { get { return DataHelper.GetNotEmpty(ValidationHelper.GetString(GetValue("ZeroRowsText"), lstIgnore.ZeroRowsText), lstIgnore.ZeroRowsText); } set { SetValue("ZeroRowsText", value); lstIgnore.ZeroRowsText = value; } } /// /// Gets or sets the size of the page when paging is used. /// public string PageSize { get { return ValidationHelper.GetString(GetValue("PageSize"), lstIgnore.PageSize); } set { SetValue("PageSize", value); lstIgnore.PageSize = value; } } #endregion #region "Stop processing" /// /// Returns true if the control processing should be stopped. /// public override bool StopProcessing { get { return base.StopProcessing; } set { base.StopProcessing = value; lstIgnore.StopProcessing = value; } } #endregion /// /// Content loaded event handler. /// public override void OnContentLoaded() { base.OnContentLoaded(); SetupControl(); } /// /// Initializes the control properties. /// protected void SetupControl() { if (StopProcessing) { // Do nothing lstIgnore.StopProcessing = true; } else { lstIgnore.PageSize = PageSize; lstIgnore.ZeroRowsText = ZeroRowsText; } } /// /// Reloads the data. /// public override void ReloadData() { SetupControl(); } }