using System;
using System.Configuration;
namespace Yavsc
{
///
/// Thanks configuration element.
///
public class ThanksConfigurationElement : ConfigurationElement
{
///
/// Gets or sets the name.
///
/// The name.
[ConfigurationProperty("name", IsKey=true, IsRequired=true)]
public string Name {
get {
return (string) base ["name"];
}
set { base ["name"] = value; }
}
///
/// Gets or sets the URL.
///
/// The URL.
[ConfigurationProperty("url")]
public string Url {
get {
return (string) base ["url"];
}
set { base ["url"] = value; }
}
///
/// Gets or sets the image.
///
/// The image.
[ConfigurationProperty("image")]
public string Image {
get {
return (string) base ["image"];
}
set { base ["image"] = value; }
}
///
/// Gets or sets the display.
///
///
/// The displaied text when no image is provided and we
/// don't want use the name attribute.
///
[ConfigurationProperty("display")]
public string Display {
get {
return (string) base ["display"];
}
set { base ["display"] = value; }
}
}
}