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

MonitorViewModel.cs 690 B

2 年之前
2 年之前
2 年之前
2 年之前
2 年之前
2 年之前
2 年之前
2 年之前
123456789101112131415161718192021222324
  1. using BPASmartClient.Business;
  2. using BPASmartClient.Device;
  3. using Microsoft.Toolkit.Mvvm.ComponentModel;
  4. using System;
  5. using System.Collections.Generic;
  6. using System.Collections.ObjectModel;
  7. using System.Linq;
  8. using System.Text;
  9. using System.Threading.Tasks;
  10. namespace BPASmartClient.MorkM.ViewModel
  11. {
  12. internal class MonitorViewModel : ObservableObject
  13. {
  14. public MonitorViewModel()
  15. {
  16. }
  17. public static int DeviceId { get; set; }
  18. public ObservableCollection<VariableMonitor> variableMonitors { get; set; } = Plugin.GetInstance()?.GetPlugin<DeviceMgr>()?.GetDevices()?.FirstOrDefault(p => p.DeviceId == DeviceId)?.variableMonitors;
  19. }
  20. }