You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- using BPASmartClient.Helper;
- using BPASmartClient.Model;
- using BPASmartClient.Model.小炒机;
- using Microsoft.Toolkit.Mvvm.ComponentModel;
- using Microsoft.Toolkit.Mvvm.Input;
- 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: ObservableObject
- {
- /// <summary>
- /// 菜单
- /// </summary>
- public ObservableCollection<FoodMenuModel> FoodMenus { get; set; } = new ObservableCollection<FoodMenuModel>();
-
- public RelayCommand<object> StartOrder { get; set; }
-
- public FoodMenuViewModel()
- {
- Json<MaterialAndFryingTime>.Data.materials?.Keys?.ToList().ForEach(key => FoodMenus.Add(new FoodMenuModel { GoodName = key }));
-
- StartOrder = new RelayCommand<object>((o) =>
- {
- ActionManage.GetInstance.Send("开始下单", o);
- });
- }
-
-
- }
- }
|