终端一体化运控平台
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.
 
 
 

53 řádky
2.0 KiB

  1. using BPA.Helper;
  2. using FryPot_DosingSystem.Model;
  3. using BPA.Helper;
  4. using System;
  5. using System.Collections.Concurrent;
  6. using System.Collections.Generic;
  7. using System.Linq;
  8. using System.Text;
  9. using System.Threading.Tasks;
  10. namespace FryPot_DosingSystem.ViewModel
  11. {
  12. internal class HardWareStatusViewModel:NotifyBase
  13. {
  14. private static HardWareStatusViewModel _instance;
  15. public static HardWareStatusViewModel GetInstance => _instance ??= new HardWareStatusViewModel();
  16. public HardWareStatusViewModel()
  17. {
  18. RollerOneModel = new RollerLineBarrelSerialModel();
  19. RollerTwoModel = new RollerLineBarrelSerialModel();
  20. RollerThreeModel = new RollerLineBarrelSerialModel();
  21. }
  22. private int _lineOneOne;
  23. public int LineOneOne { get { return _lineOneOne; }set { _lineOneOne = value;OnPropertyChanged(); } }
  24. /// <summary>
  25. /// 线体1 工位->桶号
  26. /// </summary>
  27. private RollerLineBarrelSerialModel _rollerOneModel;
  28. public RollerLineBarrelSerialModel RollerOneModel { get { return _rollerOneModel; }set { _rollerOneModel = value;OnPropertyChanged(); } }
  29. /// <summary>
  30. /// 线体2 工位->桶号
  31. /// </summary>
  32. private RollerLineBarrelSerialModel _rollerTwoModel;
  33. public RollerLineBarrelSerialModel RollerTwoModel { get { return _rollerTwoModel; } set { _rollerTwoModel = value; OnPropertyChanged(); } }
  34. /// <summary>
  35. /// 线体3 工位->桶号
  36. /// </summary>
  37. private RollerLineBarrelSerialModel _rollerThreeModel;
  38. public RollerLineBarrelSerialModel RollerThreeModel { get { return _rollerThreeModel; } set { _rollerThreeModel = value; OnPropertyChanged(); } }
  39. /// <summary>
  40. /// 线体4 工位->桶号s
  41. /// </summary>
  42. private RollerLineBarrelSerialModel _rollerFourModel;
  43. public RollerLineBarrelSerialModel RollerFourModel { get { return _rollerFourModel; } set { _rollerFourModel = value; OnPropertyChanged(); } }
  44. }
  45. }