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

📄 weblogbasetemplatedwebcontrol.cs

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

using System;
using System.ComponentModel;
using CommunityServer.Blogs.Components;using CommunityServer.Components;using CommunityServer.Controls;namespace CommunityServer.Blogs.Controls
{
    /// <summary>
    /// Summary description for WeblogTemplatedForumWebControl.
    /// </summary>
    public abstract class WeblogBaseTemplatedWebControl : TemplatedWebControl
    {
        public WeblogBaseTemplatedWebControl():base()
        {
			  _currentContext = CSContext.Current;
        }

        /// <summary>
        /// No Being Span
        /// </summary>
        /// <param name="writer"></param>
        public override void RenderBeginTag(System.Web.UI.HtmlTextWriter writer)
        {
            //we don't need a span tag
        }

        /// <summary>
        /// No End Span
        /// </summary>
        /// <param name="writer"></param>
        public override void RenderEndTag(System.Web.UI.HtmlTextWriter writer)
        {
            //we don't need a span tag
        }

        private CSContext _currentContext = null;

		protected CSContext CurrentCSContext
		{
			get { return _currentContext; }
		}

        /// <summary>
        /// The Current User Accessing the blog/data
        /// </summary>
        protected User CurrentUser
        {
            get{return _currentContext.User;}
        } 

        [DefaultValue(true)]
        private bool enableTitle = true;

        public bool EnableTitle
        {
            get { return enableTitle; }
            set { enableTitle = value; }
        }


        /// <summary>
        /// Set Blogs as the directory for all Blog Controls
        /// </summary>
        protected override String ExternalSkinFileName
        {
            get
            {
                if (base.SkinTemplate == null)
                    return CreateExternalSkinFileName("Blogs");
                return null;
            }
        }
    }
}

⌨️ 快捷键说明

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