Mercurial > silverbladetech
comparison 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 |
comparison
equal
deleted
inserted
replaced
9:904a9faadf8b | 10:443821e55f06 |
---|---|
1 using System.Configuration; | |
2 | |
3 namespace Chronos.Configuration | |
4 { | |
5 /// <summary> | |
6 /// Represents a <see cref="WidgetConfigurationElement"/> collection | |
7 /// </summary> | |
8 public sealed class WidgetConfigurationElementCollection | |
9 : GenericElementCollection<string, WidgetConfigurationElement> | |
10 { | |
11 #region · Properties · | |
12 | |
13 /// <summary> | |
14 /// Gets the type of the collection. | |
15 /// </summary> | |
16 /// <value>The type of the collection.</value> | |
17 public override ConfigurationElementCollectionType CollectionType | |
18 { | |
19 get | |
20 { | |
21 return ConfigurationElementCollectionType.BasicMap; | |
22 } | |
23 } | |
24 | |
25 /// <summary> | |
26 /// Gets the name of the element. | |
27 /// </summary> | |
28 /// <value>The name of the element.</value> | |
29 protected override string ElementName | |
30 { | |
31 get { return "widget"; } | |
32 } | |
33 | |
34 #endregion | |
35 | |
36 #region · Constructors · | |
37 | |
38 /// <summary> | |
39 /// Initializes a new instance of the <see cref="ApplicationElementCollection"/> class. | |
40 /// </summary> | |
41 public WidgetConfigurationElementCollection() | |
42 : base() | |
43 { | |
44 } | |
45 | |
46 #endregion | |
47 | |
48 #region · Methods · | |
49 | |
50 /// <summary> | |
51 /// Gets the element key. | |
52 /// </summary> | |
53 /// <param name="element">The element.</param> | |
54 /// <returns></returns> | |
55 protected override string GetElementKey(WidgetConfigurationElement element) | |
56 { | |
57 return element.Id; | |
58 } | |
59 | |
60 #endregion | |
61 } | |
62 } |