?? 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 + -