aggregatecolumn.cs

来自「本系统是在asp版《在线文件管理器》的基础上设计制作」· CS 代码 · 共 71 行

CS
71
字号
//------------------------------------------------------------------------------
// <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);

            if ( !Page.IsPostBack || !EnableViewState ) 
            {
                DataBind();
            }
        }


        public override void DataBind()
        {
            base.DataBind ();

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

            ByGroup.DataSource = groups;
            ByGroup.DataBind();

            opmlList.DataSource = groups;
            opmlList.DataBind();

            syndicationList.DataSource = groups;
            syndicationList.DataBind();
            
            bloggerList.DataSource = groups;
            bloggerList.DataBind();
        }

	}
}

⌨️ 快捷键说明

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