Пример #1
0
        private DMPS4K150C_DM_Input(ControlSystem ControlSystem, ControlSystem.eDmps34K150CInputs Input)
        {
            this.DMInputPort = Input.ToString();;


            TestControlSystemType.isDMPS4K150C(ControlSystem, "This Module is for a DMPS4K150C Control System");

            _ControlSystem = ControlSystem;
            _SwitcherInput = DMPS4K150C_SwitcherInput.GetDMPS4K150C_SwitcherInput(_ControlSystem);
            DMInput        = _ControlSystem.SwitcherInputs[(uint)Input] as Card.Dmps3DmInput;

            switch (Input)
            {
            case Crestron.SimplSharpPro.CrestronControlSystem.eDmps34K150CInputs.Dm1:
                _SwitcherInput.DM1InputChanged += new DMPS4K150C_SwitcherInput.SwitcherInputEventHandler(_SwitcherInput_DM1InputChanged);
                break;

            case Crestron.SimplSharpPro.CrestronControlSystem.eDmps34K150CInputs.Dm2:
                _SwitcherInput.DM2InputChanged += new DMPS4K150C_SwitcherInput.SwitcherInputEventHandler(_SwitcherInput_DM2InputChanged);
                break;

            default:
                break;
            }

            DMInput.DmInputPort.VideoAttributes.AttributeChange += new Crestron.SimplSharpPro.DeviceSupport.GenericEventHandler(VideoAttributes_AttributeChange);
        }
        private DMPS4K150C_SwitcherInput(ControlSystem DMPS4K150C_ControlSystem)
        {
            TestControlSystemType.isDMPS4K150C(DMPS4K150C_ControlSystem, "This Module is for a DMPS4K150C Control System");

            this.DMPS4K150C_ControlSystem = DMPS4K150C_ControlSystem;

            DMPS4K150C_ControlSystem.DMInputChange += new DMInputEventHandler(DMPS4K150ControlSystem_DMInputChange);
        }
Пример #3
0
        private DMPS4K150C_AnalogAudioOutput(ControlSystem ControlSystem)
        {
            TestControlSystemType.isDMPS4K150C(ControlSystem, "This Module is for a DMPS4K150C Control System");

            _ControlSystem     = ControlSystem;
            _AnalogAudioOutput = ((Card.Dmps3DmHdmiAudioOutput)ControlSystem.SwitcherOutputs[1]).AudioOutputStream;
            _SwitcherOutput    = DMPS4K150C_SwitcherOutput.GetDMPS4K150C_SwitcherOutput(_ControlSystem);
            _SwitcherOutput.DmpsAudioOutputStreamChanged += new DMPS4K150C_SwitcherOutput.SwitcherOutputEventHandler(_SwitcherOutput_DmpsAudioOutputStreamChanged);
        }
Пример #4
0
        private DMPS4K150C_Mic1(ControlSystem ControlSystem)
        {
            TestControlSystemType.isDMPS4K150C(ControlSystem, "This Module is for a DMPS4K150C Control System");

            _ControlSystem = ControlSystem;
            Mic1           = (Dmps3Microphone)ControlSystem.Microphones[1];

            _ControlSystem.MicrophoneChange += new MicrophoneChangeEventHandler(_ControlSystem_MicrophoneChange);
        }
Пример #5
0
        private DMPS4K150C_AVControl(ControlSystem ControlSystem)
        {
            TestControlSystemType.isDMPS4K150C(ControlSystem, "This Module is for a DMPS4K150C Control System");

            _ControlSystem = ControlSystem;

            _ControlSystem.DMInputChange  += new DMInputEventHandler(ControlSystem_DMInputChange);
            _ControlSystem.DMOutputChange += new DMOutputEventHandler(ControlSystem_DMOutputChange);

            VGAInput1  = _ControlSystem.SwitcherInputs[(uint)eDmps34K150CInputs.Vga1] as Card.Dmps3VgaInput;
            VGAInput2  = _ControlSystem.SwitcherInputs[(uint)eDmps34K150CInputs.Vga2] as Card.Dmps3VgaInput;
            VGAInput3  = _ControlSystem.SwitcherInputs[(uint)eDmps34K150CInputs.Vga3] as Card.Dmps3VgaInput;
            VGAInput4  = _ControlSystem.SwitcherInputs[(uint)eDmps34K150CInputs.Vga4] as Card.Dmps3VgaInput;
            HDMIInput1 = _ControlSystem.SwitcherInputs[(uint)eDmps34K150CInputs.Hdmi1] as Card.Dmps3HdmiInputWithoutAnalogAudio;
            HDMIInput2 = _ControlSystem.SwitcherInputs[(uint)eDmps34K150CInputs.Hdmi2] as Card.Dmps3HdmiInputWithoutAnalogAudio;;
            HDMIInput3 = _ControlSystem.SwitcherInputs[(uint)eDmps34K150CInputs.Hdmi3] as Card.Dmps3HdmiInputWithoutAnalogAudio;;
            HDMIInput4 = _ControlSystem.SwitcherInputs[(uint)eDmps34K150CInputs.Hdmi4] as Card.Dmps3HdmiInputWithoutAnalogAudio;;
            DMInput1   = _ControlSystem.SwitcherInputs[(uint)eDmps34K150CInputs.Dm1] as Card.Dmps3DmInput;
            DMInput2   = _ControlSystem.SwitcherInputs[(uint)eDmps34K150CInputs.Dm2] as Card.Dmps3DmInput;
            DMOutput1  = _ControlSystem.SwitcherOutputs[(uint)eDmps34K150COutputs.DmHdmiAnalogOutput] as Card.Dmps3HdmiAudioOutput;
        }
        private DMPS4K150C_DM_Output(ControlSystem ControlSystem, ControlSystem.eDmps34K150COutputs Output)
        {
            //this.DMOutputPort = Output.ToString();
            this.DMOutputPort = "DM1Out";

            TestControlSystemType.isDMPS4K150C(ControlSystem, "This Module is for a DMPS4K150C Control System");

            _ControlSystem  = ControlSystem;
            _SwitcherOutput = DMPS4K150C_SwitcherOutput.GetDMPS4K150C_SwitcherOutput(_ControlSystem);
            _DMOutput       = _ControlSystem.SwitcherOutputs[(uint)Output] as Card.Dmps3DmHdmiAudioOutput;

            _SwitcherOutput.DmpsDmHdmiOutputStreamChanged += new DMPS4K150C_SwitcherOutput.SwitcherOutputEventHandler(_SwitcherOutput_DMHDMIOutputStreamChanged);
            _SwitcherOutput.HdmiOutputStreamChanged       += new DMPS4K150C_SwitcherOutput.SwitcherOutputEventHandler(_SwitcherOutput_HdmiOutputStreamChanged);
            _SwitcherOutput.DmOutputStreamChanged         += new DMPS4K150C_SwitcherOutput.SwitcherOutputEventHandler(_SwitcherOutput_DmOutputStreamChanged);
            _SwitcherOutput.DMOutputChanged += new DMPS4K150C_SwitcherOutput.SwitcherOutputEventHandler(_SwitcherOutput_DMOutputChanged);

            _DMOutput.DmOutputPort.StreamCec.CecChange += new CecChangeEventHandler(DMStreamCec_CecChange);
            _DMOutput.DmOutputPort.ConnectedDevice.DeviceInformationChange += new ConnectedDeviceChangeEventHandler(DMConnectedDevice_DeviceInformationChange);

            _DMOutput.HdmiOutputPort.StreamCec.CecChange += new CecChangeEventHandler(HDMIStreamCec_CecChange);
            _DMOutput.HdmiOutputPort.ConnectedDevice.DeviceInformationChange += new ConnectedDeviceChangeEventHandler(HDMIConnectedDevice_DeviceInformationChange);
        }
        private DMPS4K150C_VGA_Input(ControlSystem ControlSystem, ControlSystem.eDmps34K150CInputs Input)
        {
            this.VgaInputPort = Input.ToString();;


            TestControlSystemType.isDMPS4K150C(ControlSystem, "This Module is for a DMPS4K150C Control System");

            _ControlSystem = ControlSystem;
            _SwitcherInput = DMPS4K150C_SwitcherInput.GetDMPS4K150C_SwitcherInput(_ControlSystem);
            VGAInput       = _ControlSystem.SwitcherInputs[(uint)Input] as Card.Dmps3VgaInput;

            switch (Input)
            {
            case Crestron.SimplSharpPro.CrestronControlSystem.eDmps34K150CInputs.Vga1:
                _SwitcherInput.VGA1InputChanged += new DMPS4K150C_SwitcherInput.SwitcherInputEventHandler(_SwitcherInput_VGA1InputChanged);
                break;

            case Crestron.SimplSharpPro.CrestronControlSystem.eDmps34K150CInputs.Vga2:
                _SwitcherInput.VGA2InputChanged += new DMPS4K150C_SwitcherInput.SwitcherInputEventHandler(_SwitcherInput_VGA2InputChanged);
                break;

            case Crestron.SimplSharpPro.CrestronControlSystem.eDmps34K150CInputs.Vga3:
                _SwitcherInput.VGA3InputChanged += new DMPS4K150C_SwitcherInput.SwitcherInputEventHandler(_SwitcherInput_VGA3InputChanged);
                break;

            case Crestron.SimplSharpPro.CrestronControlSystem.eDmps34K150CInputs.Vga4:
                _SwitcherInput.VGA4InputChanged += new DMPS4K150C_SwitcherInput.SwitcherInputEventHandler(_SwitcherInput_VGA4InputChanged);
                break;

            default:
                break;
            }

            VGAInput.VgaInputPort.VideoAttributes.AttributeChange += new GenericEventHandler(VideoAttributes_AttributeChange);
            VGAInput.VgaInputPort.VideoControls.ControlChange     += new GenericEventHandler(VideoControls_ControlChange);
        }
        private DMPS4K150C_HDMI_Input(ControlSystem ControlSystem, ControlSystem.eDmps34K150CInputs Input)
        {
            this.HDMIInputPort = Input.ToString();;


            TestControlSystemType.isDMPS4K150C(ControlSystem, "This Module is for a DMPS4K150C Control System");

            _ControlSystem = ControlSystem;
            _SwitcherInput = DMPS4K150C_SwitcherInput.GetDMPS4K150C_SwitcherInput(_ControlSystem);
            HDMIInput      = _ControlSystem.SwitcherInputs[(uint)Input] as Card.Dmps3HdmiInputWithoutAnalogAudio;

            switch (Input)
            {
            case Crestron.SimplSharpPro.CrestronControlSystem.eDmps34K150CInputs.Hdmi1:
                _SwitcherInput.HDMI1InputChanged += new DMPS4K150C_SwitcherInput.SwitcherInputEventHandler(_SwitcherInput_HDMI1InputChanged);
                break;

            case Crestron.SimplSharpPro.CrestronControlSystem.eDmps34K150CInputs.Hdmi2:
                _SwitcherInput.HDMI2InputChanged += new DMPS4K150C_SwitcherInput.SwitcherInputEventHandler(_SwitcherInput_HDMI2InputChanged);
                break;

            case Crestron.SimplSharpPro.CrestronControlSystem.eDmps34K150CInputs.Hdmi3:
                _SwitcherInput.HDMI3InputChanged += new DMPS4K150C_SwitcherInput.SwitcherInputEventHandler(_SwitcherInput_HDMI3InputChanged);
                break;

            case Crestron.SimplSharpPro.CrestronControlSystem.eDmps34K150CInputs.Hdmi4:
                _SwitcherInput.HDMI4InputChanged += new DMPS4K150C_SwitcherInput.SwitcherInputEventHandler(_SwitcherInput_HDMI4InputChanged);
                break;

            default:
                break;
            }

            HDMIInput.HdmiInputPort.VideoAttributes.AttributeChange += new Crestron.SimplSharpPro.DeviceSupport.GenericEventHandler(VideoAttributes_AttributeChange);
            HDMIInput.HdmiInputPort.StreamCec.CecChange             += new CecChangeEventHandler(StreamCec_CecChange);
        }
        public ControlSystem()
            : base()
        {
            TestControlSystemType.isDMPS4K150C(this, "This program is for a DMPS4K150 Control System");

            try
            {
                Thread.MaxNumberOfUserThreads = 20;

                #region Assigning SIMPL like classes
                //This clases are created to mimic the modules find in SIMPL
                //Slot-01
                Com01 = new DMPS3TwoWaySerialDriver(this.ComPorts[1]);
                //Slot-02
                IRIn1 = this.IROutputPorts[1];
                //Slot-03
                Digtal_Inputs = DigitalInputs2Card.GetSlot2DigitalInputs(this.DigitalInputPorts);
                //Slot-04
                Relays = Relays2Card.GetRelay2Card(this.RelayPorts);
                //Slot-07.Slot01
                Ethernet_Information = AdapterInformation.GetAdapterInformation();
                //Slot-08.Slot-01
                DeviceControl = DMPS4K150C_DeviceControl.GetDMPS4K150C_DeviceControl(this);
                //Slot-08.Slot-02
                AVControl = DMPS4K150C_AVControl.GetDMPS4K150C_AVControl(this);
                //Slot-08.Slot-02.Slot-01.Slot-01
                Mic1 = DMPS4K150C_Mic1.GetDMPS4K150C_Mic(this);
                //Slot-08.Slot-02.Slot-02.Slot-01
                VGA1 = DMPS4K150C_VGA_Input.GetVGAInput(this, eDmps34K150CInputs.Vga1);
                //Slot-08.Slot-02.Slot-02.Slot-02
                VGA2 = DMPS4K150C_VGA_Input.GetVGAInput(this, eDmps34K150CInputs.Vga2);
                //Slot-08.Slot-02.Slot-02.Slot-03
                VGA3 = DMPS4K150C_VGA_Input.GetVGAInput(this, eDmps34K150CInputs.Vga3);
                //Slot-08.Slot-02.Slot-02.Slot-04
                VGA4 = DMPS4K150C_VGA_Input.GetVGAInput(this, eDmps34K150CInputs.Vga4);
                //Slot-08.Slot-02.Slot-02.Slot-05
                HDMI1 = DMPS4K150C_HDMI_Input.GetHDMIInput(this, eDmps34K150CInputs.Hdmi1);
                //Slot-08.Slot-02.Slot-02.Slot-06
                HDMI2 = DMPS4K150C_HDMI_Input.GetHDMIInput(this, eDmps34K150CInputs.Hdmi2);
                //Slot-08.Slot-02.Slot-02.Slot-07
                HDMI3 = DMPS4K150C_HDMI_Input.GetHDMIInput(this, eDmps34K150CInputs.Hdmi3);
                //Slot-08.Slot-02.Slot-02.Slot-08
                HDMI4 = DMPS4K150C_HDMI_Input.GetHDMIInput(this, eDmps34K150CInputs.Hdmi4);
                //Slot-08.Slot-02.Slot-02.Slot-09
                DM1 = DMPS4K150C_DM_Input.GetDMInput(this, eDmps34K150CInputs.Dm1);
                //Slot-08.Slot-02.Slot-02.Slot-10
                DM2 = DMPS4K150C_DM_Input.GetDMInput(this, eDmps34K150CInputs.Dm2);
                //Slot-08.Slot-02.Slot-03.Slot-01
                AnalogAudioOutput = DMPS4K150C_AnalogAudioOutput.GetDMPS4K150C_Mic(this);
                //Slot-08.Slot-02.Slot-03.Slot-02
                DM1Out = DMPS4K150C_DM_Output.GetDMOutput(this, eDmps34K150COutputs.DmHdmiAnalogOutput);
                //Slot-09.Slot-01
                TT_1XX = new ConnectItDevice(new Tt1xx(this, 1));
                //Slot-11.Slot-01
                C2I_USB_HID1 = new USBPort(this.UsbHids[1]);
                //Slot-11.Slot-02
                C2I_USB_HID2 = new USBPort(this.UsbHids[2]);
                //Slot-11.Slot-03
                C2I_USB_HID3 = new USBPort(this.UsbHids[3]);
                //Slot-11.Slot-04
                C2I_USB_HID4 = new USBPort(this.UsbHids[4]);
                //Slot-12
                System_Monitor = System_Monitor.GetSystemMonitor();
                //Slot-12.Slot-01
                System_Control = System_Control.GetSystemControl();
                //Slot-12.Slot-02
                SystemInformation = System_Information.GetSystemInformation();
                #endregion

                #region Enpoints
                var DMTransmitter1 = this.SwitcherInputs[(uint)eDmps34K150CInputs.Dm1] as DMInput;
                Transmitter1 = new DM_TX_4K_100_C_1G(DMTransmitter1);
                var DMReciver = this.SwitcherOutputs[(uint)eDmps34K150COutputs.DmHdmiAnalogOutput] as DMOutput;
                Receiver1 = new DM_RMC_4K_100_C_1G(DMReciver);
                #endregion
            }
            catch (Exception e)
            {
                ErrorLog.Error("Error in the constructor: {0}", e.Message);
            }
        }
Пример #10
0
 private DMPS4K150C_SwitcherOutput(ControlSystem ControlSystem)
 {
     TestControlSystemType.isDMPS4K150C(ControlSystem, "This Module is for a DMPS4K150C Control System");
     this._ControlSystem            = ControlSystem;
     _ControlSystem.DMOutputChange += new DMOutputEventHandler(_ControlSystem_DMOutputChange);
 }