设备初始化

This commit is contained in:
hsc
2026-06-10 14:24:45 +08:00
parent 59d047d8e6
commit 5452857299
6 changed files with 60 additions and 20 deletions

View File

@@ -0,0 +1,45 @@
using DeviceCommand.Base;
using DeviceCommand.Device;
using Prism.Ioc;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace UIShare.GlobalVariable
{
public class DeviceManager
{
public SystemConfig _systemConfig { get; set; }
public IContainerProvider _containerProvider { get; set; }
public IT7800E _iT7800E { get; set; }
public N36200 _n36200 { get; set; }
public N36600 _n36600 { get; set; }
public N69200 _n69200 { get; set; }
public SDS2000X_HD _sDS2000X_HD { get; set; }
public SPAW7000 _sPAW7000 { get; set; }
public IList<IBaseInterface> DeviceList { get; set; }
public DeviceManager(IContainerProvider containerProvider,SystemConfig systemConfig)
{
_containerProvider = containerProvider;
_systemConfig = systemConfig;
InitDevices();
}
private void InitDevices()
{
foreach(var Config in _systemConfig.DeviceList)
{
if (Config.ConnectionType == "Tcp")
{
}
else if (Config.ConnectionType == "Serial")
{
}
}
}
}
}