Ejemplo n.º 1
0
        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);
            //}
        }
Ejemplo n.º 2
0
        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);
                }
            }
        }