namespace Yw.WinFrmUI { /// /// 用于标识水力曲线属性特性 /// [AttributeUsage(AttributeTargets.Property, AllowMultiple = false, Inherited = true)] public class HydroCurveProAttribute : Attribute { /// /// /// public HydroCurveProAttribute(string curve) { this.Curve = curve; } /// /// /// public HydroCurveProAttribute(string curve, string curveType) : this(curve) { this.CurveType = curveType; } /// /// 曲线 /// public string Curve { get; private set; } /// /// 曲线类型 /// public string CurveType { get; private set; } } }