using BPA.Helper; using BPASmartClient.Model; using BPASmartClient.Model.小炒机; using BPA.Helper; using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; using System.Text; using System.Threading.Tasks; namespace BPASmartClient.ViewModel { public class FoodMenuViewModel : NotifyBase { /// /// 菜单 /// public ObservableCollection FoodMenus { get; set; } = new ObservableCollection(); public BPARelayCommand StartOrder { get; set; } public FoodMenuViewModel() { Json.Data.materials?.Keys?.ToList().ForEach(key => FoodMenus.Add(new FoodMenuModel { GoodName = key })); StartOrder = new BPARelayCommand((o) => { ActionManage.GetInstance.Send(o, "开始下单"); }); } } }