Mercurial > silverbladetech
view Chronosv2/source/Configuration/WidgetConfigurationElementCollection.cs @ 21:dfc81f8bb838
working version for sttocks except ui within metrowpf
author | adminsh@apollo |
---|---|
date | Tue, 20 Mar 2012 15:07:31 +0000 |
parents | 443821e55f06 |
children |
line wrap: on
line source
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 } }