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

FoodMenuViewModel.cs 792 B

2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
1234567891011121314151617181920212223242526272829
  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. StartOrder = new RelayCommand<object>((o) =>
  20. {
  21. ActionManage.GetInstance.Send("开始下单", o);
  22. });
  23. }
  24. }
  25. }