Example #1
0
 /// <summary>
 /// Copies the elements of the specified <see cref="FTPConfigInfo">FTPConfigInfo</see> array to the end of the collection.
 /// </summary>
 /// <param name="value">An array of type <see cref="FTPConfigInfo">FTPConfigInfo</see> containing the Components to add to the collection.</param>
 public void AddRange(FTPConfigInfo[] value)
 {
     for (int i = 0; (i < value.Length); i = (i + 1))
     {
         this.Add(value[i]);
     }
 }
Example #2
0
 /// <summary>
 /// Gets a value indicating whether the collection contains the specified <see cref="FTPConfigInfoCollection">FTPConfigInfoCollection</see>.
 /// </summary>
 /// <param name="value">The <see cref="FTPConfigInfoCollection">FTPConfigInfoCollection</see> to search for in the collection.</param>
 /// <returns><b>true</b> if the collection contains the specified object; otherwise, <b>false</b>.</returns>
 public bool Contains(FTPConfigInfo value)
 {
     return this.List.Contains(value);
 }
Example #3
0
 public int Add(FTPConfigInfo value)
 {
     return this.List.Add(value);
 }
Example #4
0
 public void Remove(FTPConfigInfo value)
 {
     List.Remove(value);
 }
Example #5
0
 /// <summary>
 /// Initializes a new instance of the <see cref="FTPConfigInfoCollection">FTPConfigInfoCollection</see> class containing the specified array of <see cref="FTPConfigInfo">FTPConfigInfo</see> Components.
 /// </summary>
 /// <param name="value">An array of <see cref="FTPConfigInfo">FTPConfigInfo</see> Components with which to initialize the collection. </param>
 public FTPConfigInfoCollection(FTPConfigInfo[] value)
 {
     this.AddRange(value);
 }
Example #6
0
 public void Insert(int index, FTPConfigInfo value)
 {
     List.Insert(index, value);
 }
Example #7
0
 /// <summary>
 /// Gets the index in the collection of the specified <see cref="FTPConfigInfoCollection">FTPConfigInfoCollection</see>, if it exists in the collection.
 /// </summary>
 /// <param name="value">The <see cref="FTPConfigInfoCollection">FTPConfigInfoCollection</see> to locate in the collection.</param>
 /// <returns>The index in the collection of the specified object, if found; otherwise, -1.</returns>
 public int IndexOf(FTPConfigInfo value)
 {
     return this.List.IndexOf(value);
 }
Example #8
0
 /// <summary>
 /// Copies the collection Components to a one-dimensional <see cref="T:System.Array">Array</see> instance beginning at the specified index.
 /// </summary>
 /// <param name="array">The one-dimensional <see cref="T:System.Array">Array</see> that is the destination of the values copied from the collection.</param>
 /// <param name="index">The index of the array at which to begin inserting.</param>
 public void CopyTo(FTPConfigInfo[] array, int index)
 {
     this.List.CopyTo(array, index);
 }
Example #9
0
            /// <summary>
            /// 设置FTP对象信息
            /// </summary>
            private static void SetFtpConfigInfo()
            {
                FTPConfigInfoCollection ftpconfiginfocollection = (FTPConfigInfoCollection)SerializationHelper.Load(typeof(FTPConfigInfoCollection), m_configfilepath);

                FTPConfigInfoCollection.FTPConfigInfoCollectionEnumerator fcice = ftpconfiginfocollection.GetEnumerator();

                //遍历集合并设置相应的FTP信息(静态)对象
                while (fcice.MoveNext())
                {
                    if (fcice.Current.Name == "ForumAttach")
                    {
                        m_forumattach = fcice.Current;
                        break;
                    }
                }
            }
Example #10
0
        /// <summary>
        /// 设置FTP对象信息
        /// </summary>
        private static void SetFtpConfigInfo()
        {
            FTPConfigInfoCollection ftpconfiginfocollection = (FTPConfigInfoCollection)SerializationHelper.Load(typeof(FTPConfigInfoCollection), m_configfilepath);

            FTPConfigInfoCollection.FTPConfigInfoCollectionEnumerator fcice = ftpconfiginfocollection.GetEnumerator();

            //遍历集合并设置相应的FTP信息(静态)对象
            while (fcice.MoveNext())
            {
                if (fcice.Current.Name == "ForumAttach")
                {
                    m_forumattach = fcice.Current;
                    continue;
                }

                if (fcice.Current.Name == "SpaceAttach")
                {
                    m_spaceattach = fcice.Current;
                    continue;
                }

                if (fcice.Current.Name == "AlbumAttach")
                {
                    m_albumattach = fcice.Current;
                    continue;
                }

                if (fcice.Current.Name == "MallAttach")
                {
                    m_mallattach = fcice.Current;
                    continue;
                }

                if (fcice.Current.Name == "ForumAvatar")
                {
                    m_forumavatar = fcice.Current;
                    continue;
                }
            }
        }