终端一体化运控平台
Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

DebugViewModel.cs 2.9 KiB

vor 2 Jahren
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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. }