1 using System; 2 using System.Collections.Generic; 3 using System.Text; 4 using System.ComponentModel; 5 6 #if Microsoft_CONTROL 7 namespace System.Windows.Forms.DataVisualization.Charting 8 #else 9 namespace System.Web.UI.DataVisualization.Charting 10 #endif 11 { 12 [AttributeUsage(AttributeTargets.All)] 13 internal sealed class SRCategoryAttribute : CategoryAttribute 14 { 15 // Methods SRCategoryAttribute(string category)16 public SRCategoryAttribute(string category) 17 : base(category) 18 { 19 } 20 GetLocalizedString(string value)21 protected override string GetLocalizedString(string value) 22 { 23 return SR.Keys.GetString(value); 24 } 25 } 26 } 27