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

📄 postpendingmoderation.cs

📁 本系统是在asp版《在线文件管理器》的基础上设计制作
💻 CS
字号:
//------------------------------------------------------------------------------
// <copyright company="Telligent Systems">
//     Copyright (c) Telligent Systems Corporation.  All rights reserved.
// </copyright> 
//------------------------------------------------------------------------------

using System;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using CommunityServer.Components;
using System.IO;
using CommunityServer.Controls;
using CommunityServer.Discussions.Components;

namespace CommunityServer.Discussions.Controls 
{

	// *********************************************************************
	//  PostPendingModeration
	//
	/// <summary>
	/// Displayed to user after they post a message to the forums if they are moderated
	/// </summary>
	// ********************************************************************/ 

	public class PostPendingModeration : SkinnedWebControl 
	{

		CSContext csContext = CSContext.Current;
		string skinFilename = "Skin-PostPendingModeration.ascx";


		// *********************************************************************
		//  PostPendingModeration
		//
		/// <summary>
		/// Constructor
		/// </summary>
		//
		// ********************************************************************/
		public PostPendingModeration() : base() 
		{

			// Assign a default template name
			if (SkinFilename == null) 
			{
				SkinFilename = skinFilename;

			}

		}

		// *********************************************************************
		//  Initializeskin
		//
		/// <summary>
		/// Initialize the control template and populate the control with values
		/// </summary>
		// ***********************************************************************/
		override protected void InitializeSkin(Control skin) 
		{
			Label title;
			Label body;

			String _Title = ResourceManager.GetString("PostPendingModeration_Title");
			String _Body = String.Format(ResourceManager.GetString("PostPendingModeration_Body"), "<a href=\"" + ForumUrls.Instance().Forum( CSContext.Current.ForumID ) + "\"> " + Forums.GetForum( CSContext.Current.ForumID).Name + "</a>");
					
			// Find the title
			title = (Label) skin.FindControl("MessageTitle");
			if (title != null) 
			{
				title.Text = _Title;
			}

			// Find the title
			body = (Label) skin.FindControl("MessageBody");
			if (body != null) 
			{
				body.Text = _Body;
			}

		}

	}
}




⌨️ 快捷键说明

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