CListItem.cs 860 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. namespace ProjectBase.Controls.Others
  7. {
  8. internal class CListItem
  9. {
  10. public CListItem(string text, string value)
  11. {
  12. this.text = text;
  13. this.value = value;
  14. }
  15. public CListItem(string text)
  16. {
  17. this.text = text;
  18. this.value = text;
  19. }
  20. private string text;
  21. private string value;
  22. public string Text
  23. {
  24. get { return text; }
  25. set { text = value; }
  26. }
  27. public string Value
  28. {
  29. get { return this.value; }
  30. set { this.value = value; }
  31. }
  32. public override string ToString()
  33. {
  34. return Text.ToString();
  35. }
  36. }
  37. }