1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
| namespace Yw.WinFrmUI
| {
| /// <summary>
| /// 用于显示的单位(propertyGrid中使用)
| /// </summary>
| [AttributeUsage(AttributeTargets.Property, AllowMultiple = false, Inherited = true)]
| public class DisplayUnitAttribute : Attribute
| {
| /// <summary>
| ///
| /// </summary>
| public string Unit { get; set; }
|
| /// <summary>
| ///
| /// </summary>
| /// <param name="unit"></param>
| public DisplayUnitAttribute(string unit)
| {
| this.Unit = unit;
| }
| }
|
|
| }
|
|