/// <summary>
 ///     <para>
 ///       Adds the contents of another <see cref='.PadContentCollection'/> to the end of the collection.
 ///    </para>
 /// </summary>
 /// <param name='value'>
 ///    A <see cref='.PadContentCollection'/> containing the objects to add to the collection.
 /// </param>
 /// <returns>
 ///   <para>None.</para>
 /// </returns>
 /// <seealso cref='.PadContentCollection.Add'/>
 public void AddRange(PadContentCollection value)
 {
     for (int i = 0; (i < value.Count); i = (i + 1))
     {
         this.Add(value[i]);
     }
 }
 void CreatePads(object sender, EventArgs e)
 {
     IPadContent[] contents = (IPadContent[])(AddInTreeSingleton.AddInTree.GetTreeNode(viewContentPath).BuildChildItems(this)).ToArray(typeof(IPadContent));
     foreach (IPadContent content in contents)
     {
         PadContentCollection.Add(content);
     }
 }
Beispiel #3
0
        public void ShowPads(PadContentCollection contentCollection)
        {
            foreach (IPadContent pad in contentCollection)
            {
                ShowPad(pad);
            }

            if (File.Exists(configFile))
            {
                dockManager.LoadConfigFromFile(configFile);
            }
            else if (File.Exists(defaultconfigFile))
            {
                dockManager.LoadConfigFromFile(defaultconfigFile);
            }
        }
		/// <summary>
		///     <para>
		///       Initializes a new instance of <see cref='.PadContentCollection'/> based on another <see cref='.PadContentCollection'/>.
		///    </para>
		/// </summary>
		/// <param name='value'>
		///       A <see cref='.PadContentCollection'/> from which the contents are copied
		/// </param>
		public PadContentCollection(PadContentCollection value) {
			this.AddRange(value);
		}
			public IPadContentEnumerator(PadContentCollection mappings) {
				this.temp = ((IEnumerable)(mappings));
				this.baseEnumerator = temp.GetEnumerator();
			}
		/// <summary>
		///     <para>
		///       Adds the contents of another <see cref='.PadContentCollection'/> to the end of the collection.
		///    </para>
		/// </summary>
		/// <param name='value'>
		///    A <see cref='.PadContentCollection'/> containing the objects to add to the collection.
		/// </param>
		/// <returns>
		///   <para>None.</para>
		/// </returns>
		/// <seealso cref='.PadContentCollection.Add'/>
		public void AddRange(PadContentCollection value) {
			for (int i = 0; (i < value.Count); i = (i + 1)) {
				this.Add(value[i]);
			}
		}
 /// <summary>
 ///     <para>
 ///       Initializes a new instance of <see cref='.PadContentCollection'/> based on another <see cref='.PadContentCollection'/>.
 ///    </para>
 /// </summary>
 /// <param name='value'>
 ///       A <see cref='.PadContentCollection'/> from which the contents are copied
 /// </param>
 public PadContentCollection(PadContentCollection value)
 {
     this.AddRange(value);
 }
 public IPadContentEnumerator(PadContentCollection mappings)
 {
     this.temp           = ((IEnumerable)(mappings));
     this.baseEnumerator = temp.GetEnumerator();
 }
		public void ShowPads(PadContentCollection contentCollection)
		{
			foreach(IPadContent pad in contentCollection)
			{
				ShowPad(pad);
			}

			if (File.Exists(configFile)) 
			{
				dockManager.LoadConfigFromFile(configFile);
			} 
			else if (File.Exists(defaultconfigFile)) 
			{
				dockManager.LoadConfigFromFile(defaultconfigFile);
			}
		}