ComboboxItem.cs 507 B

123456789101112131415161718192021222324
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. namespace AipGateway.Viewer
  7. {
  8. public class ComboboxItem
  9. {
  10. public string Text { get; set; }
  11. public object Value { get; set; }
  12. public ComboboxItem(string value, string text)
  13. {
  14. Value = value;
  15. Text = text;
  16. }
  17. public override string ToString()
  18. {
  19. return Value + ", " + Text;
  20. }
  21. }
  22. }