VPatchStation.cs 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. namespace MeterVision.db
  8. {
  9. public class VPatchStation : INotifyPropertyChanged
  10. {
  11. public event PropertyChangedEventHandler PropertyChanged;
  12. protected void OnPropertyChanged(string propertyName)
  13. {
  14. PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
  15. }
  16. public string PatchId{ get; set;}
  17. public string StationId { get; set; }
  18. public int TotalCount { get; set; }
  19. private int _errorCount;
  20. public int ErrorCount
  21. {
  22. get => _errorCount;
  23. set
  24. {
  25. if(_errorCount != value)
  26. {
  27. _errorCount = value;
  28. OnPropertyChanged(nameof(ErrorCount));
  29. }
  30. }
  31. }
  32. private int _equalCount;
  33. public int EqualCount
  34. {
  35. get => _equalCount;
  36. set
  37. {
  38. if (_equalCount != value)
  39. {
  40. _equalCount = value;
  41. OnPropertyChanged(nameof(EqualCount));
  42. }
  43. }
  44. }
  45. private int _invalidCount;
  46. public int InvalidCount
  47. {
  48. get => _invalidCount;
  49. set
  50. {
  51. if (_invalidCount != value)
  52. {
  53. _invalidCount = value;
  54. OnPropertyChanged(nameof(InvalidCount));
  55. }
  56. }
  57. }
  58. public int Index { get; set; }
  59. public VPatchStation()
  60. {
  61. }
  62. //-------------------------------------------------------
  63. }
  64. }