46 lines
1.3 KiB
C#
46 lines
1.3 KiB
C#
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")
|
|
{
|
|
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|