private void MyPanel_SigChange(Crestron.SimplSharpPro.DeviceSupport.BasicTriList currentDevice, SigEventArgs args) { if (currentDevice == myPanel) { switch (args.Sig.Type) { case eSigType.Bool: { if (args.Sig.BoolValue) { switch (args.Sig.Number) { case 10: { ErrorLog.Notice("TDS: input 1 pressed"); myFrame.Outputs[1].VideoOut = myFrame.Inputs[1]; break; } case 11: { ErrorLog.Notice("TDS: input 2 pressed"); myFrame.Outputs[1].VideoOut = myFrame.Inputs[2]; break; } case 12: { ErrorLog.Notice("TDS: input 3 pressed"); myFrame.Outputs[3].VideoOut = myFrame.Inputs[1]; break; } case 13: { ErrorLog.Notice("TDS: input 4 pressed"); myFrame.Outputs[3].VideoOut = myFrame.Inputs[2]; break; } default: break; } } else { } } break; case eSigType.UShort: break; default: break; } } }
private void MyEISC_SigChange(Crestron.SimplSharpPro.DeviceSupport.BasicTriList currentDevice, SigEventArgs args) { switch (args.Sig.Type) { case eSigType.Bool: { if (args.Sig.BoolValue) { switch (args.Sig.Number) { case 1: { if (myEISC.BooleanOutput[1].BoolValue == true) { myEISC.BooleanInput[10].BoolValue = true; } else { myEISC.BooleanInput[10].BoolValue = false; } break; } case 2: { if (myEISC.BooleanOutput[2].BoolValue == true) { myEISC.BooleanInput[11].BoolValue = true; } else { myEISC.BooleanInput[11].BoolValue = false; } break; } default: { break; } } } break; } default: break; } }
void MyRemote_SigChangeHandler(Crestron.SimplSharpPro.DeviceSupport.BasicTriList currentDevice, SigEventArgs args) { if (currentDevice == MyRemote) { switch (args.Sig.Type) { case eSigType.Bool: { if (args.Sig.BoolValue) { switch (args.Sig.Number) { case 32: { ErrorLog.Notice("TDS: button press 1 registered"); MyRemote.BooleanInput[33].BoolValue = false; MyRemote.BooleanInput[32].BoolValue = true; break; } case 33: { ErrorLog.Notice("TDS: button press 2 registered"); MyRemote.BooleanInput[32].BoolValue = false; MyRemote.BooleanInput[33].BoolValue = true; break; } default: break; } } } break; default: break; } } }