|
- using BPA.Helper;
- using BPASmartClient.Model.大炒;
- using BPASmartClient.MorkBF.Model;
- using BPASmartClient.MorkBF.VIew;
- using System;
- using System.Collections.Generic;
- using System.Collections.ObjectModel;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
-
- namespace BPASmartClient.MorkBF.ViewModel
- {
- //[INotifyPropertyChanged]
- partial class MenuViewModel
- {
- public ObservableCollection<FryPotMessages> fryPotMessages { get; set; } = Json<LocalFryPotMessage>.Data.FryPotMessage;
-
- //[BPARelayCommand]
- private void MenuEdit(object o)
- {
- if (o == null) return;
- if (o is FryPotMessages value)
- {
- Global.GLoFryMessage = value;
- FoodManagerView foodManagerView = new FoodManagerView();
- foodManagerView.ShowDialog();
- }
- }
-
- //[BPARelayCommand]
- private void MenuDelete(object o)
- {
- if (o == null) return;
- if (o is FryPotMessages value)
- {
- fryPotMessages.Remove(value);
- }
- Json<LocalFryPotMessage>.Save();
- }
- //[BPARelayCommand]
- private void FryPot1_StartOrder(object o)
- {
- if (o == null) return;
- if (o is FryPotMessages value)
- {
- ActionManage.GetInstance.Send(value.fryPotProcesses, "FryPot1StartLocalOrder");
- }
-
- }
-
- //[BPARelayCommand]
- private void FryPot2_StartOrder(object o)
- {
- if (o == null) return;
- if (o is FryPotMessages value)
- {
- ActionManage.GetInstance.Send(value.fryPotProcesses, "FryPot2StartLocalOrder");
- }
- }
- }
- }
|