📄 treeitemvalidator.cs
字号:
//------------------------------------------------------------------------------
// <copyright company="Telligent Systems">
// Copyright (c) Telligent Systems Corporation. All rights reserved.
// </copyright>
//------------------------------------------------------------------------------
using CommunityServer.Components;
using CommunityServer.Controls;
using System.Web;
namespace CommunityServer.ControlPanel.Controls
{
/// <summary>
/// Summary description for TreeItemValidator.
/// </summary>
public class TreeItemValidator : IMenuItem
{
public TreeItemValidator()
{
//
// TODO: Add constructor logic here
//
}
public bool IsValid(HttpContext context)
{
return CSContext.Current.User.ControlPanelManageView == ControlPanelManageView.Tree;
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -