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