终端一体化运控平台
Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

FoodMenuViewModel.cs 792 B

1 rok temu
1 rok temu
1 rok temu
1 rok temu
1 rok temu
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. }