resourcelabel.cs

来自「community server 源码」· CS 代码 · 共 44 行

CS
44
字号
//------------------------------------------------------------------------------
// <copyright company="Telligent Systems">
//     Copyright (c) Telligent Systems Corporation.  All rights reserved.
// </copyright> 
//------------------------------------------------------------------------------

using System;
using System.ComponentModel;

namespace CommunityServer.ControlPanel.Controls
{
	/// <summary>
	/// Summary description for ResourceLabel.
	/// </summary>
	public class ResourceLabel : CommunityServer.Controls.ResourceLabel 
	{
		/// <summary>
		/// Gets or sets the name of the resource file to pull from
		/// </summary>
		[
		Bindable(true),
		Category( "Appearance" ),
		Description( "Gets or sets the name of the resource file." ),
		DefaultValue( "ControlPanelResources.xml" ),
		]
		public override String ResourceFile 
		{
			get 
			{
				Object state = ViewState["ResourceFile"];
				if ( state != null ) 
				{
					return (String)state;
				}
				return "ControlPanelResources.xml";
			}
			set 
			{
				ViewState["ResourceFile"] = value;
			}
		}
	}
}

⌨️ 快捷键说明

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