终端一体化运控平台
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
 
 
 

26 lignes
689 B

  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. using BPASmartClient.Business;
  7. using BPASmartClient.Device;
  8. using Microsoft.Toolkit.Mvvm.ComponentModel;
  9. using System.Collections.ObjectModel;
  10. namespace BPASmartClient.MorkS.ViewModel
  11. {
  12. public 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. }