终端一体化运控平台
Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.
 
 
 

63 wiersze
1.7 KiB

  1. using BPASmartClient.Helper;
  2. using BPASmartClient.Model.大炒;
  3. using BPASmartClient.MorkBF.Model;
  4. using BPASmartClient.MorkBF.VIew;
  5. using System;
  6. using System.Collections.Generic;
  7. using System.Collections.ObjectModel;
  8. using System.Linq;
  9. using System.Text;
  10. using System.Threading.Tasks;
  11. namespace BPASmartClient.MorkBF.ViewModel
  12. {
  13. [INotifyPropertyChanged]
  14. partial class MenuViewModel
  15. {
  16. public ObservableCollection<FryPotMessages> fryPotMessages { get; set; } = Json<LocalFryPotMessage>.Data.FryPotMessage;
  17. [RelayCommand]
  18. private void MenuEdit(object o)
  19. {
  20. if (o == null) return;
  21. if (o is FryPotMessages value)
  22. {
  23. Global.GLoFryMessage = value;
  24. FoodManagerView foodManagerView = new FoodManagerView();
  25. foodManagerView.ShowDialog();
  26. }
  27. }
  28. [RelayCommand]
  29. private void MenuDelete(object o)
  30. {
  31. if (o == null) return;
  32. if (o is FryPotMessages value)
  33. {
  34. fryPotMessages.Remove(value);
  35. }
  36. Json<LocalFryPotMessage>.Save();
  37. }
  38. [RelayCommand]
  39. private void FryPot1_StartOrder(object o)
  40. {
  41. if (o == null) return;
  42. if (o is FryPotMessages value)
  43. {
  44. ActionManage.GetInstance.Send("FryPot1StartLocalOrder", value.fryPotProcesses);
  45. }
  46. }
  47. [RelayCommand]
  48. private void FryPot2_StartOrder(object o)
  49. {
  50. if (o == null) return;
  51. if (o is FryPotMessages value)
  52. {
  53. ActionManage.GetInstance.Send("FryPot2StartLocalOrder", value.fryPotProcesses);
  54. }
  55. }
  56. }
  57. }