📄 forumlinkbar.cs
字号:
//------------------------------------------------------------------------------
// <copyright company="Telligent Systems">
// Copyright (c) Telligent Systems Corporation. All rights reserved.
// </copyright>
//------------------------------------------------------------------------------
using System.Web.UI;
using CommunityServer.Components;
using CommunityServer.Controls;
namespace CommunityServer.Discussions.Controls
{
/// <summary>
/// Summary description for ForumLinkBar.
/// </summary>
public class ForumLinkBar : TemplatedWebControl
{
public ForumLinkBar()
{
}
/// <summary>
/// Override this method to attach templated or external skin controls to local references.
/// </summary>
/// <remarks>
/// This will only be called if the non-default skin is used.
/// </remarks>
protected override void AttachChildControls()
{
Control cntrl = FindControl("AuthUserOnly");
if(cntrl != null)
cntrl.Visible = !CSContext.Current.User.IsAnonymous;
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -