aggregatecolumn.cs
来自「community server 源码」· CS 代码 · 共 73 行
CS
73 行
//------------------------------------------------------------------------------
// <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 + =
减小字号Ctrl + -
显示快捷键?