终端一体化运控平台
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

37 lines
904 B

  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. namespace WPFDemo.Bb
  8. {
  9. public class Class1
  10. {
  11. [DataGridColumnOrder(0)]//设置列的索引
  12. [DisplayName("整数")]//设置设备名称
  13. public int data1 { get; set; }
  14. [DataGridColumnOrder(1)]
  15. [DisplayName("字节")]
  16. public byte data2 { get; set; }
  17. [DataGridColumnOrder(2)]
  18. [DisplayName("布尔")]
  19. public bool data3 { get; set; }
  20. [DataGridColumnOrder(3)]
  21. [DisplayName("字符串")]
  22. public string data4 { get; set; }
  23. [DataGridColumnOrder(4)]
  24. [DisplayName("浮点数")]
  25. public float data5 { get; set; }
  26. [DataGridColumnOrder(5)]
  27. [DisplayName("无符号整数")]
  28. public ushort data6 { get; set; }
  29. }
  30. }