Example #1
0
        // Properties

        //Constructors
        public dmpsVideoRouting(Crestron.SimplSharpPro.CrestronCollection <ICardInputOutputType> SwitcherInputs,
                                Crestron.SimplSharpPro.CrestronCollection <ICardInputOutputType> SwitcherOutputs, Dmps3SystemControl Device,
                                Crestron.SimplSharpPro.DM.Cards.Card.Dmps3HdmiOutput HDMIOutput,
                                Crestron.SimplSharpPro.DM.Cards.Card.Dmps3DmInput DMInput)
        {
            try
            {
                switcherInputs  = SwitcherInputs;
                switcherOutputs = SwitcherOutputs;
                _device         = (Dmps3SystemControl)Device;
                _device.FrontPanelPassword.StringValue = "1111";
                for (uint i = 1; i <= switcherInputs.Count; i++)
                {
                    DMInput test = switcherInputs[i] as DMInput;
                    test.Name.StringValue = sourceName[i - 1];
                }
                hdmiOutput = HDMIOutput;
                dmInput    = DMInput;
                hdmiOutput.HdmiOutputPort.OutputDisable();
            }
            catch (Exception e)
            {
                CrestronConsole.PrintLine("DMPsVideo Constructor error is: " + e);
            }
        }
Example #2
0
 //Constructors
 public dmpsAudioControls(Crestron.SimplSharpPro.DM.Cards.Card.Dmps3ProgramOutput _programOut, Crestron.SimplSharpPro.CrestronCollection <ICardInputOutputType> _inputs)
 {
     try
     {
         programOut     = _programOut;
         switcherInputs = _inputs;
         MonoOrStereo(true);
     }
     catch (Exception e)
     {
         CrestronConsole.PrintLine("Error is DMAudioCOnstructor is: " + e);
     }
 }