websitepanel/WebsitePanel/Sources/WebsitePanel.WebDav.Core/Config/WebConfigSections/ElementsRenderingElement.cs
2015-02-18 02:35:32 -08:00

24 lines
No EOL
865 B
C#

using System.Configuration;
namespace WebsitePanel.WebDav.Core.Config.WebConfigSections
{
public class ElementsRenderingElement : ConfigurationElement
{
private const string DefaultCountKey = "defaultCount";
private const string AddElementsCountKey = "addElementsCount";
[ConfigurationProperty(DefaultCountKey, IsKey = true, IsRequired = true, DefaultValue = 30)]
public int DefaultCount
{
get { return (int)this[DefaultCountKey]; }
set { this[DefaultCountKey] = value; }
}
[ConfigurationProperty(AddElementsCountKey, IsKey = true, IsRequired = true, DefaultValue = 20)]
public int AddElementsCount
{
get { return (int)this[AddElementsCountKey]; }
set { this[AddElementsCountKey] = value; }
}
}
}