﻿using System.ComponentModel;
using fyiReporting.RdlDesign.RdlProperties;

namespace fyiReporting.RdlDesign
{
	internal class LocalizedDisplayNameAttribute : DisplayNameAttribute
	{
		internal LocalizedDisplayNameAttribute(string displayName)
			: base(displayName)
		{
		}

		public override string DisplayName
		{
			get { return DisplayNames.ResourceManager.GetString(DisplayNameValue, DisplayNames.Culture) ?? base.DisplayName; }
		}
	}
}
