⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 aggregatecolumn.cs

📁 community server 源码
💻 CS
字号:
//------------------------------------------------------------------------------
// <copyright company="Telligent Systems">
//     Copyright (c) Telligent Systems Corporation.  All rights reserved.
// </copyright> 
//------------------------------------------------------------------------------

using System;
using System.Collections;
using CommunityServer.Blogs.Components;
using CommunityServer.Controls;

namespace CommunityServer.Blogs.Controls
{
	/// <summary>
	/// Summary description for AggregateColumn.
	/// </summary>
	public class AggregateColumn : WeblogBaseTemplatedWebControl
	{
		public AggregateColumn()
		{
			//
			// TODO: Add constructor logic here
			//
		}

        AggregateGroupList opmlList = null;
        AggregateGroupList syndicationList = null;
        AggregateGroupList bloggerList = null;
        AggregateGroupList ByGroup = null;

	    protected override void AttachChildControls()
	    {
	        opmlList = FindControl("OpmlList") as AggregateGroupList;
            syndicationList = FindControl("SyndicationList") as AggregateGroupList;
            bloggerList = FindControl("BloggerList") as AggregateGroupList;
            ByGroup = FindControl("ByGroup") as AggregateGroupList;
	    }

        protected override void OnLoad(EventArgs e)
        {
            base.OnLoad(e);
            this.EnsureChildControls();

            ArrayList groups = WeblogGroups.GetWeblogGroups(true,false,false);

			if (ByGroup != null)
			{
				ByGroup.DataSource = groups;
				ByGroup.DataBind();
			}

			if (opmlList != null)
			{
				opmlList.DataSource = groups;
				opmlList.DataBind();
			}

			if (syndicationList != null)
			{
				syndicationList.DataSource = groups;
				syndicationList.DataBind();
			}
            
			if (bloggerList != null)
			{
				bloggerList.DataSource = groups;
				bloggerList.DataBind();
			}
        }

	}
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -