SensorViewItem.cs 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. using Aitex.Core.Common.DeviceData;
  2. using MECF.Framework.Common.CommonData;
  3. using System;
  4. using System.Collections.Generic;
  5. using System.Linq;
  6. using System.Text;
  7. using System.Threading.Tasks;
  8. namespace FurnaceUI.Views.Maintenances
  9. {
  10. public class SensorViewItem : NotifiableItem
  11. {
  12. private int _index;
  13. public int Index
  14. {
  15. get => _index;
  16. set
  17. {
  18. _index = value;
  19. InvokePropertyChanged("Index");
  20. }
  21. }
  22. private string _name;
  23. public string Name
  24. {
  25. get => _name;
  26. set
  27. {
  28. _name = value;
  29. InvokePropertyChanged("Name");
  30. }
  31. }
  32. private string _displayName;
  33. public string DisplayName
  34. {
  35. get => _displayName;
  36. set
  37. {
  38. _displayName = value;
  39. InvokePropertyChanged("DisplayName");
  40. }
  41. }
  42. private bool _value;
  43. public bool Value
  44. {
  45. get => _value;
  46. set
  47. {
  48. _value = value;
  49. InvokePropertyChanged("Value");
  50. }
  51. }
  52. }
  53. }