resourcelinkbutton.cs

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

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

using System;
using System.ComponentModel;
using CommunityServer.Components;
using ResourceManager = CommunityServer.ControlPanel.Components.ResourceManager;

namespace CommunityServer.ControlPanel.Controls
{
	/// <summary>
	/// ResourceLinkButton is a localized version of <seealso cref="CommunityServer.Controls.CSLinkButton" />.
	/// To accomplish this, ResourceName and/or ResourceFile properties must be provided.
	/// </summary>
	/// <remarks>
	/// ResourceFile is not mandatory.
	/// </remarks>
	public class ResourceLinkButton : CommunityServer.Controls.ResourceLinkButton 
	{

		/// <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 + -
显示快捷键?