123456789101112131415161718192021222324 |
- using System.Reflection;
- using Aitex.Core.RT.Device;
- namespace Aitex.Triton160.RT.Device
- {
- public class DeviceManager : DeviceManagerBase
- {
- public override bool Initialize()
- {
- FieldInfo[] fi = typeof(DeviceModel).GetFields();
- foreach (FieldInfo p in fi)
- {
- p.SetValue(null, GetDevice(p.Name));
- }
- AddCustomDevice(new IoSignalTower("System", "SignalTower", "SignalTower", "SignalTower"), "SignalTower",
- typeof(IoSignalTower));
- DeviceModel.SignalTower = GetDevice<IoSignalTower>("SignalTower");
- return true;
- }
- }
- }
|