Mercurial > silverbladetech
diff Chronosv2/source/Configuration/WidgetConfigurationElementCollection.cs @ 10:443821e55f06
Initial cleaned up add from Codeplex files
author | stevenh7776 stevenhollidge@hotmail.com |
---|---|
date | Tue, 21 Feb 2012 17:25:44 +0700 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Chronosv2/source/Configuration/WidgetConfigurationElementCollection.cs Tue Feb 21 17:25:44 2012 +0700 @@ -0,0 +1,62 @@ +using System.Configuration; + +namespace Chronos.Configuration +{ + /// <summary> + /// Represents a <see cref="WidgetConfigurationElement"/> collection + /// </summary> + public sealed class WidgetConfigurationElementCollection + : GenericElementCollection<string, WidgetConfigurationElement> + { + #region · Properties · + + /// <summary> + /// Gets the type of the collection. + /// </summary> + /// <value>The type of the collection.</value> + public override ConfigurationElementCollectionType CollectionType + { + get + { + return ConfigurationElementCollectionType.BasicMap; + } + } + + /// <summary> + /// Gets the name of the element. + /// </summary> + /// <value>The name of the element.</value> + protected override string ElementName + { + get { return "widget"; } + } + + #endregion + + #region · Constructors · + + /// <summary> + /// Initializes a new instance of the <see cref="ApplicationElementCollection"/> class. + /// </summary> + public WidgetConfigurationElementCollection() + : base() + { + } + + #endregion + + #region · Methods · + + /// <summary> + /// Gets the element key. + /// </summary> + /// <param name="element">The element.</param> + /// <returns></returns> + protected override string GetElementKey(WidgetConfigurationElement element) + { + return element.Id; + } + + #endregion + } +}