public Contract(BasicTriListWithSmartObject[] devices) { if (devices == null) { throw new ArgumentNullException("Devices is null"); } InternalContactList = new Ch5_Sample_Contract.Contact.ContactList(devices, 1); InternalSourceList = new Ch5_Sample_Contract.Selector.SourceList(devices, 32); InternalLightingList = new Ch5_Sample_Contract.Lighting.LightingList(devices, 41); InternalCameraList = new Ch5_Sample_Contract.Video.CameraList(devices, 50); }
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]); } }