public override void BuildObjects() { BinaryObjects = new List<BinaryObjectBase>(); foreach (var device in Devices) { var deviceBinaryObject = new DeviceBinaryObject(device, DatabaseType); BinaryObjects.Add(deviceBinaryObject); } //foreach (var zone in Zones) //{ // var zoneBinaryObject = new ZoneBinaryObject(zone, DatabaseType); // BinaryObjects.Add(zoneBinaryObject); //} }
public override void BuildObjects() { AddKauObjects(); foreach (var zone in XManager.DeviceConfiguration.Zones) { if (zone.GkDatabaseParent == RootDevice) { AddZone(zone); } } BinaryObjects = new List<BinaryObjectBase>(); foreach (var device in Devices) { var deviceBinaryObject = new DeviceBinaryObject(device, DatabaseType); BinaryObjects.Add(deviceBinaryObject); } foreach (var zone in Zones) { var zoneBinaryObject = new ZoneBinaryObject(zone, DatabaseType); BinaryObjects.Add(zoneBinaryObject); } foreach (var direction in XManager.DeviceConfiguration.Directions) { if (direction.GkDatabaseParent == RootDevice) { direction.SetDatabaseNo(DatabaseType, NextChildNo); Directions.Add(direction); var directionBinaryObject = new DirectionBinaryObject(direction, DatabaseType); BinaryObjects.Add(directionBinaryObject); } } }