photo.cs

来自「C#邮件代码库,用于邮件发送」· CS 代码 · 共 51 行

CS
51
字号
namespace ASPNET.StarterKit.Communities.PhotoGallery {

    using System;
    using System.Web.UI;
    using System.Web.UI.WebControls;
    using ASPNET.StarterKit.Communities;


    //*********************************************************************
    //
    // Photo Class
    //
    // Represents a particular Photo. This class 
    // displays a list of article listings.
    //
    //  _skinFileName = the name of the skin to use for this section
    //
    //  _getContentItem = the name of the method that retrieves the content item 
    //
    //*********************************************************************

    public class Photo : ContentItemPage {
    
        string _skinFileName = "PhotoGallery_Photo.ascx";

        GetContentItemDelegate _getContentItem = new GetContentItemDelegate(PhotoUtility.GetPhoto);
        

        //*********************************************************************
        //
        // Photo Constructor
        //
        // Assigns skin and contentItems method to base ContentItemPage class
        //
        //*********************************************************************

        public Photo() : base() {
            SkinFileName = _skinFileName;
            GetContentItem = _getContentItem;
        }








    }
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?