//Constructors public HDMISwitcher(uint ipId, string ipAddress, CrestronControlSystem device) { try { switcher = new HdMd4x14kE(ipId, ipAddress, device); // ^replace this line with the model of your switcher switcher.OnlineStatusChange += new OnlineStatusChangeEventHandler(switcher_OnlineStatusChange); switcher.DMSystemChange += new DMSystemEventHandler(switcher_DMSystemChange); switcher.DMInputChange += new DMInputEventHandler(switcher_DMInputChange); switcher.DMOutputChange += new DMOutputEventHandler(switcher_DMOutputChange); switcher.AutoModeOff(); //switcher.VideoEnter.BoolValue = true; switcher.FrontPanelLockOn(); switcher.Register(); for (uint i = 1; i <= 4; i++) { switcher.HdmiInputs[i].Name.StringValue = InputName[i - 1]; } for (uint i = 1; i <= 4; i++) { CrestronConsole.PrintLine("Switcher Input:{0} and the name is {1}", i, switcher.HdmiInputs[i].Name.StringValue); } CrestronConsole.PrintLine("4x1 Constructor Switcher Registration status is: " + switcher.Registered); } catch (Exception e) { CrestronConsole.PrintLine("Error is the Switcher COnstructor is: " + e); } }
public void LockPanel(bool status) { if (status) { switcher.FrontPanelLockOn(); } else { switcher.FrontPanelLockOff(); } }