예제 #1
0
        public XMLConfig()
        {
            this.name  = string.Empty;
            this.value = string.Empty;
            this.att   = string.Empty;

            this.lst = new XMLConfigs();
        }
예제 #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);
     }
 }
예제 #3
0
 public XMLConfig(string name, string link)
 {
     this.name  = name;
     this.value = link;
     this.lst   = new XMLConfigs();
 }
예제 #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);
 }
예제 #5
0
 /// Initializes with a collection of XMLConfig objects.
 /// Collection of data.
 public XMLConfigArgs(XMLConfigs ts)
     : this()
 {
     this.t.AddRange(ts);
 }
예제 #6
0
 /// Default constructor.
 public XMLConfigArgs()
 {
     t = new XMLConfigs();
 }
예제 #7
0
 public XMLConfigCatalog(XMLConfigs lst)
 {
     this.lst = lst;
 }
예제 #8
0
 public XMLConfigCatalog()
 {
     this.lst = new XMLConfigs();
 }