|
- using BPASmartClient.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;
-
- [RelayCommand]
- private void MenuEdit(object o)
- {
- if (o == null) return;
- if (o is FryPotMessages value)
- {
- Global.GLoFryMessage = value;
- FoodManagerView foodManagerView = new FoodManagerView();
- foodManagerView.ShowDialog();
- }
- }
-
- [RelayCommand]
- private void MenuDelete(object o)
- {
- if (o == null) return;
- if (o is FryPotMessages value)
- {
- fryPotMessages.Remove(value);
- }
- Json<LocalFryPotMessage>.Save();
- }
- [RelayCommand]
- private void FryPot1_StartOrder(object o)
- {
- if (o == null) return;
- if (o is FryPotMessages value)
- {
- ActionManage.GetInstance.Send("FryPot1StartLocalOrder", value.fryPotProcesses);
- }
-
- }
-
- [RelayCommand]
- private void FryPot2_StartOrder(object o)
- {
- if (o == null) return;
- if (o is FryPotMessages value)
- {
- ActionManage.GetInstance.Send("FryPot2StartLocalOrder", value.fryPotProcesses);
- }
- }
- }
- }
|