ComboBoxData.cs 515 B

1234567891011121314151617181920212223242526
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. namespace UAS_PLCDataReader.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. /// <returns>返回ComboBox的值</returns>
  18. public override string ToString()
  19. {
  20. return Text;
  21. }
  22. }
  23. }