/// <summary> /// Adds the contents of another <see cref="IndexPageForumInfoCollection">IndexPageForumInfoCollection</see> to the end of the collection. /// </summary> /// <param name="value">A <see cref="IndexPageForumInfoCollection">IndexPageForumInfoCollection</see> containing the Components to add to the collection. </param> public void AddRange(IndexPageForumInfoCollection value) { for (int i = 0; (i < value.Count); i = (i + 1)) { this.Add((IndexPageForumInfo)value.List[i]); } }
/// <summary> /// Adds the contents of another <see cref="IndexPageForumInfoCollection">IndexPageForumInfoCollection</see> to the end of the collection. /// </summary> /// <param name="value">A <see cref="IndexPageForumInfoCollection">IndexPageForumInfoCollection</see> containing the Components to add to the collection. </param> public void AddRange(IndexPageForumInfoCollection value) { for (int i = 0; (i < value.Count); i = (i + 1)) { this.Add((IndexPageForumInfo)value.List[i]); } }
/// <summary> /// 获取首页版块列表集合 /// </summary> /// <param name="fid"></param> /// <param name="hideprivate"></param> /// <param name="usergroupid"></param> /// <param name="moderstyle"></param> /// <param name="topiccount"></param> /// <param name="postcount"></param> /// <param name="todaycount"></param> /// <returns></returns> #if NET1 public static IndexPageForumInfoCollection GetForumIndexCollection(int hideprivate, int usergroupid, int moderstyle, out int topiccount, out int postcount, out int todaycount) { IndexPageForumInfoCollection coll = new IndexPageForumInfoCollection();
private static IndexPageForumInfoCollection GetRealForumIndexCollection(IndexPageForumInfoCollection forumIndexCollection) { IndexPageForumInfoCollection parentforums = new IndexPageForumInfoCollection(); IndexPageForumInfoCollection subforums = new IndexPageForumInfoCollection(); IndexPageForumInfoCollection result = new IndexPageForumInfoCollection();
/// <summary> /// 获得子版块列表 /// </summary> /// <param name="fid">版块id</param> /// <param name="colcount">每行显示几个版块</param> /// <param name="hideprivate">是否显示无权限的版块</param> /// <param name="usergroupid">用户组id</param> /// <param name="moderstyle">版主显示样式</param> /// <returns></returns> #if NET1 public static IndexPageForumInfoCollection GetSubForumCollection(int fid, int colcount, int hideprivate, int usergroupid, int moderstyle) { IndexPageForumInfoCollection coll = new IndexPageForumInfoCollection();
/// <summary> /// Initializes a new instance of the <see cref="IndexPageForumInfoCollection">IndexPageForumInfoCollection</see> class containing the elements of the specified source collection. /// </summary> /// <param name="value">A <see cref="IndexPageForumInfoCollection">IndexPageForumInfoCollection</see> with which to initialize the collection.</param> public IndexPageForumInfoCollection(IndexPageForumInfoCollection value) { this.AddRange(value); }
/// <summary> /// Initializes a new instance of the <see cref="IndexPageForumInfoCollectionEnumerator">IndexPageForumInfoCollectionEnumerator</see> class referencing the specified <see cref="IndexPageForumInfoCollection">IndexPageForumInfoCollection</see> object. /// </summary> /// <param name="mappings">The <see cref="IndexPageForumInfoCollection">IndexPageForumInfoCollection</see> to enumerate.</param> public IndexPageForumInfoCollectionEnumerator(IndexPageForumInfoCollection mappings) { _temp = ((IEnumerable)(mappings)); _enumerator = _temp.GetEnumerator(); }
/// <summary> /// Initializes a new instance of the <see cref="IndexPageForumInfoCollection">IndexPageForumInfoCollection</see> class containing the elements of the specified source collection. /// </summary> /// <param name="value">A <see cref="IndexPageForumInfoCollection">IndexPageForumInfoCollection</see> with which to initialize the collection.</param> public IndexPageForumInfoCollection(IndexPageForumInfoCollection value) { this.AddRange(value); }
/// <summary> /// Initializes a new instance of the <see cref="IndexPageForumInfoCollectionEnumerator">IndexPageForumInfoCollectionEnumerator</see> class referencing the specified <see cref="IndexPageForumInfoCollection">IndexPageForumInfoCollection</see> object. /// </summary> /// <param name="mappings">The <see cref="IndexPageForumInfoCollection">IndexPageForumInfoCollection</see> to enumerate.</param> public IndexPageForumInfoCollectionEnumerator(IndexPageForumInfoCollection mappings) { _temp = ((IEnumerable)(mappings)); _enumerator = _temp.GetEnumerator(); }
/// <summary> /// 返回分类间广告 /// </summary> /// <param name="pagename">页面名称</param> /// <param name="forumid">版块id</param> /// <param name="count">总数</param> /// <returns>返回分类间广告</returns> #if NET1 public static string GetInForumAd(string pagename, int forumid, IndexPageForumInfoCollection topforum, string templatepath)