Browse Source

I cleaned up the tabs for the ConfigurationElement.cs(Section|Collection|Element) xtf files. Cleaned up the comments in the associated .cs files. Also added contructor code to ConfigurationSection to all the section to appear in user.app.

git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/2.1@2307 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
shortcuts
Justin Dearing 20 years ago
parent
commit
a1a53eeb43
  1. 2
      data/templates/file/CSharp/CSharp.ConfigurationElement.xft
  2. 2
      data/templates/file/CSharp/CSharp.ConfigurationElementCollection.xft
  3. 2
      data/templates/file/CSharp/CSharp.ConfigurationSection.xft
  4. 4
      data/templates/file/CSharp/ConfigurationElement.cs
  5. 4
      data/templates/file/CSharp/ConfigurationElementCollection.cs
  6. 14
      data/templates/file/CSharp/ConfigurationSection.cs

2
data/templates/file/CSharp/CSharp.ConfigurationElement.xft

@ -1,5 +1,5 @@ @@ -1,5 +1,5 @@
<?xml version="1.0"?>
<Template author="Justin Dearing" version="1.0">
<Template author="Justin Dearing" version="1.1">
<Config
name = "${res:Templates.File.ConfigurationElement.Name}"
icon = "C#.File.NewClass"

2
data/templates/file/CSharp/CSharp.ConfigurationElementCollection.xft

@ -1,5 +1,5 @@ @@ -1,5 +1,5 @@
<?xml version="1.0"?>
<Template author="Justin Dearing" version="1.0">
<Template author="Justin Dearing" version="1.1">
<Config
name = "${res:Templates.File.ConfigurationElementCollection.Name}"
icon = "C#.File.NewClass"

2
data/templates/file/CSharp/CSharp.ConfigurationSection.xft

@ -1,5 +1,5 @@ @@ -1,5 +1,5 @@
<?xml version="1.0"?>
<Template author="Justin Dearing" version="1.0">
<Template author="Justin Dearing" version="1.1">
<Config
name = "${res:Templates.File.ConfigurationSection.Name}"
icon = "C#.File.NewClass"

4
data/templates/file/CSharp/ConfigurationElement.cs

@ -5,6 +5,10 @@ using System.Configuration; @@ -5,6 +5,10 @@ using System.Configuration;
namespace ${StandardNamespace}
{
/// <summary>
/// Represents a single XML tag inside a ConfigurationSection
/// or a ConfigurationElementCollection.
/// </summary>
public sealed class ${ClassName}Element : ConfigurationElement
{
/// <summary>

4
data/templates/file/CSharp/ConfigurationElementCollection.cs

@ -7,9 +7,9 @@ using System.Configuration; @@ -7,9 +7,9 @@ using System.Configuration;
namespace ${StandardNamespace}
{
/// <summary>
/// Description of ${ClassName}.
/// A collection of ${ClassName}Element(s).
/// </summary>
public sealed class ${ClassName}Collection : ConfigurationElementCollection
public class ${ClassName}Collection : ConfigurationElementCollection
{
#region Properties

14
data/templates/file/CSharp/ConfigurationSection.cs

@ -11,14 +11,24 @@ namespace ${StandardNamespace} @@ -11,14 +11,24 @@ namespace ${StandardNamespace}
public class ${ClassName}Section : ConfigurationSection
{
/// <summary>
/// Collection of tables (auctually views) to generate
/// reports from.
/// A custom XML section for an applications configuration file.
/// </summary>
[ConfigurationProperty("customSection", IsDefaultCollection = true)]
public ${ClassName}Collection ${ClassName}
{
get { return (${ClassName}Collection) base["customSection"]; }
}
/// <summary>
/// Default Constructor.
/// </summary>
public PlaneDisasterSection () : base () {
//Allow this section to be stored in user.app. By default this is forbidden.
this.SectionInformation.AllowExeDefinition =
ConfigurationAllowExeDefinition.MachineToLocalUser;
}
}
}

Loading…
Cancel
Save