终端一体化运控平台
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 

24 行
838 B

  1. using BPA.Helper;
  2. using System.Collections.ObjectModel;
  3. namespace BPASmartClient.DosingSystem.ViewModel
  4. {
  5. public class ConveyerBeltManualViewModel : NotifyBase
  6. {
  7. public ConveyerBeltManualViewModel()
  8. {
  9. for (int i = 0; i < Json<DevicePar>.Data.BaseParModel.ConveyerBeltCount; i++)
  10. {
  11. ConveyerBeltModels.Add(new ConveyerBeltModel()
  12. {
  13. Name = $"输送带{i + 1}控制",
  14. Num = i + 1,
  15. Speed = GlobalDevice.MotorSpeed[i],
  16. ConveyerBeltWork = GlobalDevice.MotorControl.GetBitValue((byte)(i + 1))
  17. });
  18. }
  19. }
  20. public ObservableCollection<ConveyerBeltModel> ConveyerBeltModels { get; set; } = new ObservableCollection<ConveyerBeltModel>();
  21. }
  22. }