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

📄 evententrydetails.aspx.cs

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

using System;
using System.Web.UI.WebControls;
using CommunityServer.Components;
using CommunityServer.ControlPanel.Controls;
using CommunityServer.ControlPanel.UI;
using CommunityServer.Controls;

namespace CommunityServer.ControlPanel.Tools
{
	/// <summary>
	/// Summary description for EventEntryDetails.
	/// </summary>
	public class EventEntryDetails : BaseToolsPage
	{
		protected Label EntryID;
		protected Label EventMessage;
		protected Label Category;
		protected Label EventDate;
		protected Label MachineName;
		protected Label EventID;
		protected Label EventType;
		protected Label SettingsID;

		private EventLogEntry entry = null;

		override protected void OnInit(EventArgs e)
		{
			this.Load += new EventHandler(this.Page_Load);
			base.OnInit(e);
		}

		private void Page_Load(object sender, EventArgs e)
		{
			CSContext context = CSContext.Current;
			int entryID = context.GetIntFromQueryString("EntryID", 0);

			Head.AddTitle("Event Log Entry", this.Context);

			entry = CommonDataProvider.Instance().GetEventLogEntry(entryID);
			Bind();
		}

		private void Bind()
		{
			EntryID.Text = entry.EntryID.ToString();
			EventMessage.Text = entry.Message.Replace("\n","<br />");
			Category.Text = entry.Category;
			EventDate.Text = entry.EventDate.ToString(CSContext.Current.User.Profile.DateFormat);
			MachineName.Text = entry.MachineName;
			EventID.Text = entry.EventID.ToString();
			EventType.Text = entry.EventType.ToString();
			SettingsID.Text = entry.SettingsID.ToString();
		}
	}
}

⌨️ 快捷键说明

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