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

MonitorViewModel.cs 667 B

1 년 전
1 년 전
12345678910111213141516171819202122232425
  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 BPA.Helper;
  9. using System.Collections.ObjectModel;
  10. namespace BPASmartClient.MorkSUpgradedVer.ViewModel
  11. {
  12. public class MonitorViewModel : NotifyBase
  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. }