终端一体化运控平台
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

50 lines
1.4 KiB

  1. using Microsoft.Toolkit.Mvvm.ComponentModel;
  2. using Microsoft.Toolkit.Mvvm.Input;
  3. using System;
  4. using System.Collections.Generic;
  5. using System.Collections.ObjectModel;
  6. using System.Linq;
  7. using System.Text;
  8. using System.Threading.Tasks;
  9. namespace BPASmartClient.MorkTM.ViewModel
  10. {
  11. public class DebugViewModel : ObservableObject
  12. {
  13. /// <summary>
  14. /// 出料口集合
  15. /// </summary>
  16. public List<string> Materials { get; set; } = new List<string>();
  17. /// <summary>
  18. /// 奶茶
  19. /// </summary>
  20. public ObservableCollection<string> TeaWithMilkType { get; set; }
  21. /// <summary>
  22. /// 出料
  23. /// </summary>
  24. public RelayCommand OutMaterials { get; set; }
  25. /// <summary>
  26. /// 转盘转动
  27. /// </summary>
  28. public RelayCommand TurnOn { get; set; }
  29. public float MaertialsWight { get { return _maertialsWight; } set { _maertialsWight = value; OnPropertyChanged(); } }
  30. private float _maertialsWight = 10;
  31. public DebugViewModel()
  32. {
  33. foreach(TeaStorageBox code in Enum.GetValues(typeof(TeaStorageBox)))
  34. {
  35. Materials.Add(code.ToString());
  36. }
  37. foreach (Material materials in Enum.GetValues(typeof(Material)))
  38. {
  39. Materials.Add(materials.ToString());
  40. }
  41. }
  42. }
  43. }