2
0

Add project files.

This commit is contained in:
DangHome
2022-05-23 00:58:58 +08:00
parent e5a279a1fd
commit f0b02be1a5
51 changed files with 3090 additions and 0 deletions

29
Library/Method/CMMMgr.cs Normal file
View File

@@ -0,0 +1,29 @@
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<XMonitor> Monitors
{
get => _Monitors;
set { SetProperty(ref _Monitors, value); }
}
ObservableRangeCollection<XMonitor> _Monitors = new ();
public async Task Init()
{
await CMMCommand.ScanMonitor();
var monColle = new ObservableRangeCollection<XMonitor>();
monColle.AddRange(await CMMCommand.ReadMonitorsData());
Monitors = monColle;
await CMMCommand.ScanMonitorInterfaces(monColle);
}
}
}