ComboBoxData.cs 678 B

12345678910111213141516171819202122232425262728293031
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. namespace UAS_DeviceMonitor.DataOperate
  6. {
  7. class ComboBoxData
  8. {
  9. /// <summary>
  10. /// 值
  11. /// </summary>
  12. public string Text { set; get; }
  13. /// <summary>
  14. /// 键
  15. /// </summary>
  16. public string Value { set; get; }
  17. /// <summary>
  18. /// 重写ToString()方法
  19. /// </summary>
  20. /// <author>PengZhen</author>
  21. /// <time>2013-10-31 15:51:37</time>
  22. /// <returns>返回ComboBox的值</returns>
  23. public override string ToString()
  24. {
  25. return Text;
  26. }
  27. }
  28. }