Initial import
This commit is contained in:
parent
0c865416ca
commit
04804b89a9
279 changed files with 12945 additions and 0 deletions
48
web/Thanks/ThanksConfigurationElement.cs
Normal file
48
web/Thanks/ThanksConfigurationElement.cs
Normal file
|
|
@ -0,0 +1,48 @@
|
|||
using System;
|
||||
using System.Configuration;
|
||||
|
||||
namespace Yavsc
|
||||
{
|
||||
public class ThanksConfigurationElement : ConfigurationElement
|
||||
{
|
||||
[ConfigurationProperty("name", IsKey=true, IsRequired=true)]
|
||||
public string Name {
|
||||
get {
|
||||
return (string) base ["name"];
|
||||
}
|
||||
set { base ["name"] = value; }
|
||||
}
|
||||
|
||||
[ConfigurationProperty("url")]
|
||||
public string Url {
|
||||
get {
|
||||
return (string) base ["url"];
|
||||
}
|
||||
set { base ["url"] = value; }
|
||||
}
|
||||
|
||||
[ConfigurationProperty("image")]
|
||||
public string Image {
|
||||
get {
|
||||
return (string) base ["image"];
|
||||
}
|
||||
set { base ["image"] = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the display.
|
||||
/// </summary>
|
||||
/// <value>
|
||||
/// The displaied text when no image is provided and we
|
||||
/// don't want use the name attribute.
|
||||
/// </value>
|
||||
[ConfigurationProperty("display")]
|
||||
public string Display {
|
||||
get {
|
||||
return (string) base ["display"];
|
||||
}
|
||||
set { base ["display"] = value; }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue