public XMLConfig()
        {
            this.name  = string.Empty;
            this.value = string.Empty;
            this.att   = string.Empty;

            this.lst = new XMLConfigs();
        }
Exemple #2
0
 /// <summary>
 ///	 <para>
 ///	   Adds the contents of another <see cref='XMLConfig'/> to the end of the collection.
 ///	</para>
 /// </summary>
 /// <param name='value'>
 ///	A <see cref='XMLConfig'/> containing the objects to add to the collection.
 /// </param>
 /// <returns>
 ///   <para>None.</para>
 /// </returns>
 /// <seealso cref='XMLConfigs.Add'/>
 public void AddRange(XMLConfigs value)
 {
     for (int i = 0; i < value.Count; i++)
     {
         this.Add(value[i]);
     }
     if (OnItemsAdd != null)
     {
         OnItemsAdd(this, new XMLConfigArgs(value));
     }
     if (OnItemsChanged != null)
     {
         OnItemsChanged(value, EventArgs.Empty);
     }
 }
 public XMLConfig(string name, string link)
 {
     this.name  = name;
     this.value = link;
     this.lst   = new XMLConfigs();
 }
Exemple #4
0
 /// <summary>
 ///	 <para>
 ///	   Initializes a new instance of <see cref='XMLConfig'/> based on another <see cref='XMLConfig'/>.
 ///	</para>
 /// </summary>
 /// <param name='value'>
 ///	   A <see cref='XMLConfig'/> from which the contents are copied
 /// </param>
 public XMLConfigs(XMLConfigs value)
 {
     this.AddRange(value);
 }
Exemple #5
0
 /// Initializes with a collection of XMLConfig objects.
 /// Collection of data.
 public XMLConfigArgs(XMLConfigs ts)
     : this()
 {
     this.t.AddRange(ts);
 }
Exemple #6
0
 /// Default constructor.
 public XMLConfigArgs()
 {
     t = new XMLConfigs();
 }
Exemple #7
0
 public XMLConfigCatalog(XMLConfigs lst)
 {
     this.lst = lst;
 }
Exemple #8
0
 public XMLConfigCatalog()
 {
     this.lst = new XMLConfigs();
 }