ComboBoxItem.cs 665 B

12345678910111213141516171819202122232425
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. namespace OTSPeriodicTable
  7. {
  8. #region ComboBox选择项类
  9. /// <summary>
  10. /// combobox控件,选择项对应类
  11. /// </summary>
  12. public class ComboBoxItem
  13. {
  14. private string _text = null;
  15. private object _value = null;
  16. public string Text { get { return this._text; } set { this._text = value; } }
  17. public object Value { get { return this._value; } set { this._value = value; } }
  18. public override string ToString()
  19. {
  20. return this._text;
  21. }
  22. }
  23. #endregion
  24. }