📄 aggregatecolumn.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);
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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -