xml doc
This commit is contained in:
parent
7558e11bd6
commit
93c18633b9
28 changed files with 338 additions and 150 deletions
|
|
@ -23,12 +23,21 @@ using System.Configuration;
|
|||
|
||||
namespace Yavsc.Settings
|
||||
{
|
||||
/// <summary>
|
||||
/// Module configuration element. (NOTUSED)
|
||||
/// </summary>
|
||||
public class ModuleConfigurationElement : ConfigurationElement
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="Yavsc.Settings.ModuleConfigurationElement"/> class.
|
||||
/// </summary>
|
||||
public ModuleConfigurationElement ()
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the name of the module.
|
||||
/// </summary>
|
||||
/// <value>The name.</value>
|
||||
[ConfigurationProperty("name", IsKey=true, IsRequired=true)]
|
||||
public string Name {
|
||||
get {
|
||||
|
|
@ -36,7 +45,10 @@ namespace Yavsc.Settings
|
|||
}
|
||||
set { base ["name"] = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the name of the class.
|
||||
/// </summary>
|
||||
/// <value>The name of the class.</value>
|
||||
[ConfigurationProperty("name", IsKey=true, IsRequired=true)]
|
||||
public string ClassName {
|
||||
get {
|
||||
|
|
|
|||
|
|
@ -23,8 +23,15 @@ using System.Configuration;
|
|||
|
||||
namespace Yavsc.Settings
|
||||
{
|
||||
/// <summary>
|
||||
/// Modules configuration section.
|
||||
/// This class is not yet used ...
|
||||
/// </summary>
|
||||
public class ModulesConfigurationSection : ConfigurationSection
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="Yavsc.Settings.ModulesConfigurationSection"/> class.
|
||||
/// </summary>
|
||||
public ModulesConfigurationSection ()
|
||||
{
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3,16 +3,35 @@ using System.Configuration;
|
|||
|
||||
namespace Yavsc
|
||||
{
|
||||
/// <summary>
|
||||
/// Thanks configuration collection.
|
||||
/// Imlements the configuration,
|
||||
/// providing the thanks collection
|
||||
/// </summary>
|
||||
public class ThanksConfigurationCollection : ConfigurationElementCollection
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets the element key.
|
||||
/// </summary>
|
||||
/// <returns>The element key.</returns>
|
||||
/// <param name="element">Element.</param>
|
||||
protected override object GetElementKey (ConfigurationElement element)
|
||||
{
|
||||
return ((ThanksConfigurationElement) element).Name;
|
||||
}
|
||||
/// <summary>
|
||||
/// Creates the new element.
|
||||
/// </summary>
|
||||
/// <returns>The new element.</returns>
|
||||
protected override ConfigurationElement CreateNewElement ()
|
||||
{
|
||||
return new ThanksConfigurationElement();
|
||||
}
|
||||
/// <summary>
|
||||
/// Gets the element.
|
||||
/// </summary>
|
||||
/// <returns>The element.</returns>
|
||||
/// <param name="name">Name.</param>
|
||||
public ThanksConfigurationElement GetElement (string name)
|
||||
{
|
||||
return this.BaseGet(name) as ThanksConfigurationElement;
|
||||
|
|
|
|||
|
|
@ -4,8 +4,16 @@ using System.Collections.Generic;
|
|||
|
||||
namespace Yavsc
|
||||
{
|
||||
/// <summary>
|
||||
/// Thanks helper.
|
||||
/// </summary>
|
||||
public static class ThanksHelper {
|
||||
static private ThanksConfigurationSection configurationSection=null;
|
||||
|
||||
static private ThanksConfigurationSection configurationSection=null;
|
||||
/// <summary>
|
||||
/// Gets the configuration section.
|
||||
/// </summary>
|
||||
/// <value>The configuration section.</value>
|
||||
static public ThanksConfigurationSection ConfigurationSection {
|
||||
get {
|
||||
if (configurationSection==null)
|
||||
|
|
@ -13,7 +21,9 @@ namespace Yavsc
|
|||
return configurationSection;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Html code for each entry
|
||||
/// </summary>
|
||||
public static string[] Links ()
|
||||
{
|
||||
List<string> result = new List<string>() ;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue