⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 forumdatalistcontrol.cs

📁 community server 源码
💻 CS
字号:
//------------------------------------------------------------------------------
// <copyright company="Telligent Systems">
//     Copyright (c) Telligent Systems Corporation.  All rights reserved.
// </copyright> 
//------------------------------------------------------------------------------

using System.Web.UI;using System.Web.UI.WebControls;using CommunityServer.Components;namespace CommunityServer.Discussions.Controls.BaseClasses 
{

    [
    ParseChildren(true)	
    ]
    public abstract class ForumDataListControl : DataList 
    {
        User user = null;
        string skinName = null;

        public ForumDataListControl() 
        {

            // Attempt to get the current user
            user = CSContext.Current.User;

            // Is the user not availabe - must be anonymous
            //            if (user == null)
            //                Users.TrackAnonymousUsers();


                skinName = user.Theme;

        }

        // *********************************************************************
        //  ForumUser
        //
        /// <summary>
        /// Returns an instance of User or null if the user is not logged in.
        /// </summary>
        // ***********************************************************************/
        protected User ForumUser 
        {
            get 
            {
                return user;
            }
        }
        
        // *********************************************************************
        //  SkinName
        //
        /// <summary>
        /// Used to construct paths to images, etc. within controls.
        /// </summary>
        /// 
        // ********************************************************************/ 
        protected string SkinName 
        {
            get 
            {
                return skinName;
            }
            set 
            {
                skinName = value;
            }
        }
    }
}

⌨️ 快捷键说明

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