Mercurial > silverbladetech
diff 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 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Chronosv2/source/Configuration/WidgetConfigurationElement.cs Tue Feb 21 17:25:44 2012 +0700 @@ -0,0 +1,48 @@ +using System.Configuration; + +namespace Chronos.Configuration +{ + /// <summary> + /// Widget configuration element + /// </summary> + public sealed class WidgetConfigurationElement + : ConfigurationElement + { + #region · Properties · + + /// <summary> + /// Gets or sets the widget id. + /// </summary> + /// <value>The widget id.</value> + [ConfigurationProperty("id", IsRequired = true, IsKey=true)] + public string Id + { + get { return (string)this["id"]; } + set { this["id"] = value; } + } + + /// <summary> + /// Gets or sets the widget handler type. + /// </summary> + /// <value>The widget handler type.</value> + [ConfigurationProperty("type", IsRequired = true)] + public string Type + { + get { return (string)this["type"]; } + set { this["type"] = value; } + } + + #endregion + + #region · Constructors · + + /// <summary> + /// Initializes a new instance of the <see cref="WidgetConfigurationElement"/> class. + /// </summary> + public WidgetConfigurationElement() + { + } + + #endregion + } +}