// 2012-10-25 add by chenxy using System; using System.ComponentModel; namespace Dongke.WinForm.Controls.InvoiceLayout { [AttributeUsage(AttributeTargets.All)] internal sealed class SRDescriptionAttribute : DescriptionAttribute { private bool replaced; public override string Description { get { if (!this.replaced) { this.replaced = true; base.DescriptionValue = SR.GetString(base.Description); } return base.Description; } } public SRDescriptionAttribute(string description) : base(description) { } } }