using System;
using CMS.PortalControls;
using CMS.GlobalHelper;
using CMS.SiteProvider;
using CMS.CMSHelper;
using CMS.SettingsProvider;
using CMS.UIControls;
public partial class CMSWebParts_OnlineMarketing_MyPendingContacts : CMSAbstractWebPart
{
#region "Public properties"
///
/// Gets or sets the site name. If is empty, documents from all sites are displayed.
///
public int SiteID
{
get
{
return ValidationHelper.GetInteger(GetValue("Site"), 0);
}
set
{
SetValue("Site", value);
}
}
///
/// Gets or sets the value of items per page.
///
public int PageSize
{
get
{
return ValidationHelper.GetInteger(GetValue("PageSize"), 10);
}
set
{
SetValue("PageSize", value);
}
}
#endregion
#region "Methods"
protected void Page_Load(object sender, EventArgs e)
{
if (StopProcessing)
{
pendingContacts.StopProcessing = true;
}
else
{
pendingContacts.SiteID = SiteID;
pendingContacts.IsWidget = true;
pendingContacts.PageSize = PageSize;
}
}
#endregion
}