Ejemplo n.º 1
0
        private void Initialize(uint controlJoinId)
        {
            ControlJoinId = controlJoinId;

            _devices = new List <BasicTriListWithSmartObject>();

            List <uint> contactList = ContactSmartObjectIdMappings[controlJoinId];

            Contact = new Ch5_Sample_Contract.Contact.IContact[contactList.Count];
            for (int index = 0; index < contactList.Count; index++)
            {
                Contact[index] = new Ch5_Sample_Contract.Contact.Contact(ComponentMediator, contactList[index]);
            }
        }
Ejemplo n.º 2
0
        private void Initialize(BasicTriListWithSmartObject[] devices, uint controlJoinId)
        {
            if (_devices == null)
            {
                ControlJoinId = controlJoinId;

                _devices = new List <BasicTriListWithSmartObject>();

                ComponentMediator.Instance.ConfigureNumericEvent(controlJoinId, Joins.Numerics.SelectedContactIndex, onSelectedContactIndex);

                List <uint> contactList = _contactSmartObjectIdMappings[controlJoinId];
                Contact = new Ch5_Sample_Contract.Contact.IContact[contactList.Count];
                for (int index = 0; index < contactList.Count; index++)
                {
                    Contact[index] = new Ch5_Sample_Contract.Contact.Contact(devices, contactList[index]);
                }

                ConfigureSmartObjectHandler(devices);
            }
        }