Mercurial > silverbladetech
comparison Chronosv2/source/Configuration/WidgetConfigurationElement.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 /// Widget configuration element | |
7 /// </summary> | |
8 public sealed class WidgetConfigurationElement | |
9 : ConfigurationElement | |
10 { | |
11 #region · Properties · | |
12 | |
13 /// <summary> | |
14 /// Gets or sets the widget id. | |
15 /// </summary> | |
16 /// <value>The widget id.</value> | |
17 [ConfigurationProperty("id", IsRequired = true, IsKey=true)] | |
18 public string Id | |
19 { | |
20 get { return (string)this["id"]; } | |
21 set { this["id"] = value; } | |
22 } | |
23 | |
24 /// <summary> | |
25 /// Gets or sets the widget handler type. | |
26 /// </summary> | |
27 /// <value>The widget handler type.</value> | |
28 [ConfigurationProperty("type", IsRequired = true)] | |
29 public string Type | |
30 { | |
31 get { return (string)this["type"]; } | |
32 set { this["type"] = value; } | |
33 } | |
34 | |
35 #endregion | |
36 | |
37 #region · Constructors · | |
38 | |
39 /// <summary> | |
40 /// Initializes a new instance of the <see cref="WidgetConfigurationElement"/> class. | |
41 /// </summary> | |
42 public WidgetConfigurationElement() | |
43 { | |
44 } | |
45 | |
46 #endregion | |
47 } | |
48 } |