Exemple #1
0
        public void Dispose()
        {
            if (IsDisposed)
            {
                return;
            }

            IsDisposed = true;

            InternalContactList.Dispose();
            InternalSourceList.Dispose();
            InternalRoom.Dispose();
            InternalCameraList.Dispose();
            ComponentMediator.Dispose();
        }
Exemple #2
0
        public Contract(BasicTriListWithSmartObject[] devices)
        {
            if (devices == null)
            {
                throw new ArgumentNullException("Devices is null");
            }

            ComponentMediator = new ComponentMediator();

            InternalContactList = new Ch5_Sample_Contract.Contact.ContactList(ComponentMediator, 1);
            InternalSourceList  = new Ch5_Sample_Contract.Selector.SourceList(ComponentMediator, 32);
            InternalRoom        = new Ch5_Sample_Contract.Lighting.Room(ComponentMediator, 41);
            InternalCameraList  = new Ch5_Sample_Contract.Video.CameraList(ComponentMediator, 82);

            for (int index = 0; index < devices.Length; index++)
            {
                AddDevice(devices[index]);
            }
        }