📄 displayeventimage.cs
字号:
namespace ASPNET.StarterKit.Communities {
using System;
using System.ComponentModel;
using ASPNET.StarterKit.Communities.Events;
//*********************************************************************
//
// DisplayEventImage Class
//
// Displays an image of a book
//
//*********************************************************************
[Designer(typeof(ASPNET.StarterKit.Communities.CommunityDesigner))]
public class DisplayEventImage : DisplayImage {
//*********************************************************************
//
// DisplayEventImage Constructor
//
// Get the book image information from the Context
//
//*********************************************************************
public DisplayEventImage() {
// Grab event image from context
if (Context != null) {
EventInfo objEventInfo = (EventInfo)Context.Items["ContentInfo"];
if (objEventInfo.ImageID != -1)
ImageUrl = ImageUtility.BuildImagePath(objEventInfo.ImageID, objEventInfo.ImageName);
}
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -