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

45 lines
1.4 KiB

  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. using Microsoft.Toolkit.Mvvm.ComponentModel;
  7. using System.Collections.ObjectModel;
  8. using BPASmartClient.JXJFoodSmallStation.Model;
  9. using BPASmartClient.Helper;
  10. using Microsoft.Toolkit.Mvvm.Input;
  11. using BPASmartClient.CustomResource.UserControls.MessageShow;
  12. using BPASmartClient.CustomResource.UserControls;
  13. using System.Diagnostics;
  14. using BPASmartClient.JXJFoodSmallStation.Model.WindSend;
  15. using System.Threading;
  16. namespace BPASmartClient.JXJFoodSmallStation.ViewModel
  17. {
  18. public class WindSendParViewModel : ObservableObject
  19. {
  20. public WindSendParViewModel()
  21. {
  22. if (WindSendRawMaterial.Count == 0)
  23. {
  24. WindSendRawMaterial.Clear();
  25. for (int i = 0; i < 5; i++)
  26. {
  27. WindSendRawMaterial.Add(new WindSendRawMaterial()
  28. {
  29. Location = i + 1,
  30. });
  31. }
  32. }
  33. SaveRawMaterialPara = new RelayCommand(() =>
  34. {
  35. Json<DevicePar>.Save();
  36. });
  37. }
  38. public ObservableCollection<WindSendRawMaterial> WindSendRawMaterial => Json<DevicePar>.Data.windSendRawMaterial;
  39. public RelayCommand SaveRawMaterialPara { get; set; }
  40. }
  41. }