终端一体化运控平台
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.
 
 
 

31 lines
978 B

  1. using BPASmartClient.Helper;
  2. using BPASmartClient.Model;
  3. using Microsoft.Toolkit.Mvvm.ComponentModel;
  4. using Microsoft.Toolkit.Mvvm.Input;
  5. using System;
  6. using System.Collections.Generic;
  7. using System.Collections.ObjectModel;
  8. using System.Linq;
  9. using System.Text;
  10. using System.Threading.Tasks;
  11. namespace BPASmartClient.ViewModel
  12. {
  13. public class FoodMenuViewModel: ObservableObject
  14. {
  15. public ObservableCollection<FoodMenuModel> FoodMenus { get; set; } = GlobalFoodMenu.LocalFoodMenus;
  16. public RelayCommand<object> StartOrder { get; set; }
  17. public FoodMenuViewModel()
  18. {
  19. FoodMenus.Add(new FoodMenuModel { GoodKey = "1111", GoodName = "小炒肉" });
  20. FoodMenus.Add(new FoodMenuModel { GoodKey = "222", GoodName = "大炒肉大炒肉大炒肉" });
  21. StartOrder = new RelayCommand<object>((o) =>
  22. {
  23. ActionManage.GetInstance.Send("开始下单", o);
  24. });
  25. }
  26. }
  27. }