using CMM.Library.Base; using CMM.Library.ViewModel; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace CMM.Library.Method { public class CMMMgr : PropertyBase { public ObservableRangeCollection Monitors { get => _Monitors; set { SetProperty(ref _Monitors, value); } } ObservableRangeCollection _Monitors = new (); public async Task Init() { await CMMCommand.ScanMonitor(); var monColle = new ObservableRangeCollection(); monColle.AddRange(await CMMCommand.ReadMonitorsData()); Monitors = monColle; await CMMCommand.ScanMonitorInterfaces(monColle); } } }