コード例 #1
0
        private void Initialize(uint controlJoinId)
        {
            ControlJoinId = controlJoinId;

            _devices = new List <BasicTriListWithSmartObject>();

            ComponentMediator.ConfigureNumericEvent(controlJoinId, Joins.Numerics.SetSelectedCameraIndex, onSetSelectedCameraIndex);
            ComponentMediator.ConfigureNumericEvent(controlJoinId, Joins.Numerics.StateOfSelectedCamera, onStateOfSelectedCamera);
            ComponentMediator.ConfigureNumericEvent(controlJoinId, Joins.Numerics.ErrorCodeOfSelectedCamera, onErrorCodeOfSelectedCamera);
            ComponentMediator.ConfigureNumericEvent(controlJoinId, Joins.Numerics.RetryCountOfSelectedCamera, onRetryCountOfSelectedCamera);
            ComponentMediator.ConfigureNumericEvent(controlJoinId, Joins.Numerics.StatusOfSelectedCameraImage, onStatusOfSelectedCameraImage);
            ComponentMediator.ConfigureStringEvent(controlJoinId, Joins.Strings.ErrorMessageOfSelectedCamera, onErrorMessageOfSelectedCamera);
            ComponentMediator.ConfigureStringEvent(controlJoinId, Joins.Strings.ResolutionOfSelectedCamera, onResolutionOfSelectedCamera);
            ComponentMediator.ConfigureStringEvent(controlJoinId, Joins.Strings.LastUpdateTimeOfSelectedCameraImage, onLastUpdateTimeOfSelectedCameraImage);
            ComponentMediator.ConfigureStringEvent(controlJoinId, Joins.Strings.URLOfVideo, onURLOfVideo);
            ComponentMediator.ConfigureStringEvent(controlJoinId, Joins.Strings.SourceTypeOfSelectedCamara, onSourceTypeOfSelectedCamara);
            ComponentMediator.ConfigureStringEvent(controlJoinId, Joins.Strings.ImageURLOfSelectedCamera, onImageURLOfSelectedCamera);
            ComponentMediator.ConfigureStringEvent(controlJoinId, Joins.Strings.VideoURLOfSelectedCamera, onVideoURLOfSelectedCamera);

            List <uint> camerasList = _camerasSmartObjectIdMappings[controlJoinId];

            Cameras = new ICamera[camerasList.Count];
            for (int index = 0; index < camerasList.Count; index++)
            {
                Cameras[index] = new Camera(ComponentMediator, camerasList[index]);
            }
        }
コード例 #2
0
        private void Initialize(uint controlJoinId)
        {
            ControlJoinId = controlJoinId;

            _devices = new List <BasicTriListWithSmartObject>();

            ComponentMediator.ConfigureBooleanEvent(controlJoinId, Joins.Booleans.TriggerSceneStart, onTriggerSceneStart);
        }
コード例 #3
0
ファイル: Source.g.cs プロジェクト: chin-gan/ch5navsegda
        private void Initialize(uint controlJoinId)
        {
            ControlJoinId = controlJoinId;

            _devices = new List <BasicTriListWithSmartObject>();

            ComponentMediator.ConfigureBooleanEvent(controlJoinId, Joins.Booleans.SetSourceSelected, onSetSourceSelected);
        }
コード例 #4
0
ファイル: ContactList.g.cs プロジェクト: chin-gan/ch5navsegda
 public void RemoveDevice(BasicTriListWithSmartObject device)
 {
     Devices.Remove(device);
     ComponentMediator.UnHookSmartObjectEvents(device.SmartObjects[ControlJoinId]);
     for (int index = 0; index < Contact.Length; index++)
     {
         ((CH5SampleSSP.Contact.Contact)Contact[index]).RemoveDevice(device);
     }
 }
コード例 #5
0
 public void RemoveDevice(BasicTriListWithSmartObject device)
 {
     Devices.Remove(device);
     ComponentMediator.UnHookSmartObjectEvents(device.SmartObjects[ControlJoinId]);
     for (int index = 0; index < Sources.Length; index++)
     {
         ((Source)Sources[index]).RemoveDevice(device);
     }
 }
コード例 #6
0
ファイル: ContactList.g.cs プロジェクト: chin-gan/ch5navsegda
 public void AddDevice(BasicTriListWithSmartObject device)
 {
     Devices.Add(device);
     ComponentMediator.HookSmartObjectEvents(device.SmartObjects[ControlJoinId]);
     for (int index = 0; index < Contact.Length; index++)
     {
         ((Ch5_Sample_Contract.Contact.Contact)Contact[index]).AddDevice(device);
     }
 }
コード例 #7
0
 public void AddDevice(BasicTriListWithSmartObject device)
 {
     Devices.Add(device);
     ComponentMediator.HookSmartObjectEvents(device.SmartObjects[ControlJoinId]);
     for (int index = 0; index < Cameras.Length; index++)
     {
         ((Camera)Cameras[index]).AddDevice(device);
     }
 }
コード例 #8
0
 public void RemoveDevice(BasicTriListWithSmartObject device)
 {
     Devices.Remove(device);
     ComponentMediator.UnHookSmartObjectEvents(device.SmartObjects[ControlJoinId]);
     for (int index = 0; index < Cameras.Length; index++)
     {
         ((Ch5_Sample_Contract.Video.Camera)Cameras[index]).RemoveDevice(device);
     }
 }
コード例 #9
0
        private void Initialize(uint controlJoinId)
        {
            ControlJoinId = controlJoinId;

            _devices = new List <BasicTriListWithSmartObject>();

            ComponentMediator.ConfigureBooleanEvent(controlJoinId, Joins.Booleans.TurnLightOn, onTurnLightOn);
            ComponentMediator.ConfigureBooleanEvent(controlJoinId, Joins.Booleans.TurnLightOff, onTurnLightOff);
            ComponentMediator.ConfigureNumericEvent(controlJoinId, Joins.Numerics.SetLightLevel, onSetLightLevel);
        }
コード例 #10
0
ファイル: Room.g.cs プロジェクト: chin-gan/ch5navsegda
 public void AddDevice(BasicTriListWithSmartObject device)
 {
     Devices.Add(device);
     ComponentMediator.HookSmartObjectEvents(device.SmartObjects[ControlJoinId]);
     for (int index = 0; index < DimmableLights.Length; index++)
     {
         ((DimmableLight)DimmableLights[index]).AddDevice(device);
     }
     for (int index = 0; index < Scenes.Length; index++)
     {
         ((Scene)Scenes[index]).AddDevice(device);
     }
 }
コード例 #11
0
ファイル: Room.g.cs プロジェクト: chin-gan/ch5navsegda
 public void RemoveDevice(BasicTriListWithSmartObject device)
 {
     Devices.Remove(device);
     ComponentMediator.UnHookSmartObjectEvents(device.SmartObjects[ControlJoinId]);
     for (int index = 0; index < DimmableLights.Length; index++)
     {
         ((Ch5_Sample_Contract.Lighting.DimmableLight)DimmableLights[index]).RemoveDevice(device);
     }
     for (int index = 0; index < Scenes.Length; index++)
     {
         ((Ch5_Sample_Contract.Lighting.Scene)Scenes[index]).RemoveDevice(device);
     }
 }
コード例 #12
0
 internal DimmableLight(ComponentMediator componentMediator, uint controlJoinId)
 {
     ComponentMediator = componentMediator;
     Initialize(controlJoinId);
 }
コード例 #13
0
 public void RemoveDevice(BasicTriListWithSmartObject device)
 {
     Devices.Remove(device);
     ComponentMediator.UnHookSmartObjectEvents(device.SmartObjects[ControlJoinId]);
 }
コード例 #14
0
 public void AddDevice(BasicTriListWithSmartObject device)
 {
     Devices.Add(device);
     ComponentMediator.HookSmartObjectEvents(device.SmartObjects[ControlJoinId]);
 }
コード例 #15
0
ファイル: ContactList.g.cs プロジェクト: chin-gan/ch5navsegda
 internal ContactList(ComponentMediator componentMediator, uint controlJoinId)
 {
     ComponentMediator = componentMediator;
     Initialize(controlJoinId);
 }
コード例 #16
0
ファイル: Room.g.cs プロジェクト: chin-gan/ch5navsegda
 internal Room(ComponentMediator componentMediator, uint controlJoinId)
 {
     ComponentMediator = componentMediator;
     Initialize(controlJoinId);
 }