State.cs 721 B

12345678910111213141516171819202122232425262728
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. using System.Windows;
  7. namespace OpenSEMI.ClientBase.Handlers
  8. {
  9. public class State : DependencyObject
  10. {
  11. public static DependencyProperty DisplayValueProperty = DependencyProperty.Register("DisplayValue", typeof(string), typeof(State));
  12. public string Key { get; set; }
  13. public string Name { get; set; }
  14. public string DisplayValue
  15. {
  16. get
  17. {
  18. return (string)GetValue(DisplayValueProperty);
  19. }
  20. set
  21. {
  22. SetValue(DisplayValueProperty, value);
  23. }
  24. }
  25. }
  26. }