displayphotoimage.cs
来自「完全网站系统」· CS 代码 · 共 37 行
CS
37 行
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 + =
减小字号Ctrl + -
显示快捷键?