📄 albumcategorizationvalidator.cs
字号:
//------------------------------------------------------------------------------
// <copyright company="Telligent Systems">
// Copyright (c) Telligent Systems Corporation. All rights reserved.
// </copyright>
//------------------------------------------------------------------------------
using System.Web;
using CommunityServer.Controls;
using CommunityServer.Galleries.Components;
namespace CommunityServer.ControlPanel.Photos
{
/// <summary>
/// Summary description for AlbumCategorizationValidator.
/// </summary>
public class AlbumCategorizationValidator : IMenuItem
{
public bool IsValid(HttpContext context)
{
CommunityServer.ControlPanel.UI.BaseGalleryPage page = HttpContext.Current.Handler as CommunityServer.ControlPanel.UI.BaseGalleryPage;
if (page != null && page.CurrentGallery != null)
return page.CurrentGallery.CategorizationType == CategorizationType.Album;
else
return false;
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -