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

1 year ago
2 years ago
1 year ago
1 year ago
2 years ago
2 years ago
1 year ago
2 years ago
1 year ago
2 years ago
1 year ago
1 year ago
2 years ago
2 years ago
1 year ago
2 years ago
123456789101112131415161718192021222324252627282930313233343536
  1. using BPA.Helper;
  2. using BPASmartClient.Model;
  3. using BPASmartClient.Model.小炒机;
  4. using BPA.Helper;
  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 : NotifyBase
  14. {
  15. /// <summary>
  16. /// 菜单
  17. /// </summary>
  18. public ObservableCollection<FoodMenuModel> FoodMenus { get; set; } = new ObservableCollection<FoodMenuModel>();
  19. public BPARelayCommand<object> StartOrder { get; set; }
  20. public FoodMenuViewModel()
  21. {
  22. Json<MaterialAndFryingTime>.Data.materials?.Keys?.ToList().ForEach(key => FoodMenus.Add(new FoodMenuModel { GoodName = key }));
  23. StartOrder = new BPARelayCommand<object>((o) =>
  24. {
  25. ActionManage.GetInstance.Send(o, "开始下单");
  26. });
  27. }
  28. }
  29. }