using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using BPASmartClient.Business; using BPASmartClient.Device; using Microsoft.Toolkit.Mvvm.ComponentModel; using System.Collections.ObjectModel; namespace BPASmartClient.MorkS3.ViewModel { public class MonitorViewModel : ObservableObject { public MonitorViewModel() { } public static int DeviceId { get; set; } public ObservableCollection variableMonitors { get; set; } = Plugin.GetInstance()?.GetPlugin()?.GetDevices()?.FirstOrDefault(p => p.DeviceId == DeviceId)?.variableMonitors; } }