[fix]Config创建默认配置文件的开关Runtime.CreateConfigOnMissing,仅需对自动创建生效,而不应该阻止用户主动Save
智能大石头 authored at 2024-08-09 00:30:41 石头 committed at 2024-08-10 14:22:24
615.00 B
X
using System;

namespace XControl
{
    /// <summary>目标控件类型</summary>
    [AttributeUsage(AttributeTargets.Class)]
    public class TargetControlTypeAttribute : Attribute
    {
        private Type _Type;
        /// <summary>目标控件类型</summary>
        public Type Type
        {
            get { return _Type; }
            set { _Type = value; }
        }

        /// <summary>指定目标控件类型</summary>
        /// <param name="type">类型</param>
        public TargetControlTypeAttribute(Type type)
        {
            Type = type;
        }
    }
}