终端一体化运控平台
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 

54 行
2.9 KiB

  1. using BPASmartClient.Helper;
  2. using Microsoft.Toolkit.Mvvm.ComponentModel;
  3. using Microsoft.Toolkit.Mvvm.Input;
  4. using System;
  5. using System.Collections.Generic;
  6. using System.Linq;
  7. using System.Text;
  8. using System.Threading.Tasks;
  9. namespace BPASmartClient.ViewModel
  10. {
  11. public class DebugViewModel : ObservableObject
  12. {
  13. public RelayCommand PlcInite { get; set; }
  14. public RelayCommand SimulateOrder { get; set; }
  15. public RelayCommand TakePot { get; set; }
  16. public RelayCommand TakePotReset { get; set; }
  17. public RelayCommand TempTurnOff { get; set; }
  18. public RelayCommand OneBlock { get; set; }
  19. public RelayCommand TwoBlock { get; set; }
  20. public RelayCommand ThreeBlock { get; set; }
  21. public RelayCommand OverTurnOff { get; set; }
  22. public RelayCommand OverOneBlock { get; set; }
  23. public RelayCommand OverTwoBlock { get; set; }
  24. public RelayCommand OverThreeBlock { get; set; }
  25. public RelayCommand OverGoOn { get; set; }
  26. public RelayCommand OverGoDown { get; set; }
  27. public RelayCommand ShreddCabbage { get; set; }
  28. public RelayCommand FryPork { get; set; }
  29. public RelayCommand XingBaoGu { get; set; }
  30. public DebugViewModel()
  31. {
  32. PlcInite = new RelayCommand(() => { ActionManage.GetInstance.Send("InitCommand"); });
  33. SimulateOrder = new RelayCommand(() => { ActionManage.GetInstance.Send("SimultaorOrder"); });
  34. TakePot = new RelayCommand(() => { ActionManage.GetInstance.Send("TakePot"); });
  35. TakePotReset = new RelayCommand(() => { ActionManage.GetInstance.Send("TakePotReset"); });
  36. TempTurnOff = new RelayCommand(() => { ActionManage.GetInstance.Send("TakeOff"); });
  37. OneBlock = new RelayCommand(() => { ActionManage.GetInstance.Send("OneBlock"); });
  38. TwoBlock = new RelayCommand(() => { ActionManage.GetInstance.Send("TwoBlock"); });
  39. ThreeBlock = new RelayCommand(() => { ActionManage.GetInstance.Send("ThreeBlock"); });
  40. OverTurnOff = new RelayCommand(() => { ActionManage.GetInstance.Send("OverTurnOff"); });
  41. OverOneBlock = new RelayCommand(() => { ActionManage.GetInstance.Send("OverOneBlock"); });
  42. OverTwoBlock = new RelayCommand(() => { ActionManage.GetInstance.Send("OverTwoBlock"); });
  43. OverThreeBlock = new RelayCommand(() => { ActionManage.GetInstance.Send("OverThreeBlock"); });
  44. OverGoOn = new RelayCommand(() => { ActionManage.GetInstance.Send("OverGoOn"); });
  45. OverGoDown = new RelayCommand(() => { ActionManage.GetInstance.Send("OverGoDown"); });
  46. ShreddCabbage = new RelayCommand(() => { ActionManage.GetInstance.Send("ShreddCabbage"); });
  47. FryPork = new RelayCommand(() => { ActionManage.GetInstance.Send("FryPork"); });
  48. XingBaoGu = new RelayCommand(() => { ActionManage.GetInstance.Send("XingBaoGu"); });
  49. }
  50. }
  51. }