必须填写至少10个字的日志
nnhy authored at 2012-07-27 18:48:21
910.00 B
X
using System;
using System.Collections.Generic;
using System.Text;
using System.ComponentModel;

namespace XControl
{
    [AttributeUsage(AttributeTargets.All)]
    internal sealed class WebCategoryAttribute : CategoryAttribute
    {
        // Methods
        internal WebCategoryAttribute(string category)
            : base(category)
        {
        }

        protected override string GetLocalizedString(string value)
        {
            string localizedString = base.GetLocalizedString(value);
            if (localizedString == null)
            {
                localizedString = SR.GetString("Category_" + value);
            }
            return localizedString;
        }

        // Properties
        public override object TypeId
        {
            get
            {
                return typeof(CategoryAttribute);
            }
        }
    }
}