using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using BPA.Message;
using BPA.Message.Enum;
using BPASmartClient.Device;
using BPASmartClient.EventBus;
using BPASmartClient.Helper;
using BPASmartClient.Model;
using Microsoft.Toolkit.Mvvm.ComponentModel;
namespace BPASmartClient.ViewModel
{
public class OrderStatusViewModel : ObservableObject
{
public OrderStatusViewModel()
{
}
///
/// 订单状态列表
///
public static ObservableCollection orderStatusLists { get; set; } = new ObservableCollection();
///
/// 等待取餐列表
///
public static ObservableCollection WaitTakeMeal { get; set; } = new ObservableCollection();
///
/// MQTT 大屏取餐通知委托
///
public static void Init()
{
//清除订单数据
ActionManage.GetInstance.Register(new Action(() =>
{
Application.Current.Dispatcher.Invoke(() =>
{
orderStatusLists.Clear();
WaitTakeMeal.Clear();
});
}), "ClearOrders");
ActionManage.GetInstance.Register(new Action