Exemple #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);
        }
Exemple #2
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;
        }