public NecDisplay(string name, int displayId, NecComPortHandler comPortHandler) : base(name) { var inputs = new List <DisplayDeviceInput> { DisplayDeviceInput.VGA, DisplayDeviceInput.DVI, DisplayDeviceInput.DVI2, DisplayDeviceInput.DisplayPort, DisplayDeviceInput.DisplayPort2, DisplayDeviceInput.HDMI1, DisplayDeviceInput.HDMI2, DisplayDeviceInput.HDMI3, DisplayDeviceInput.HDMI4 }; _availableInputs = new ReadOnlyCollection <DisplayDeviceInput>(inputs); _displayId = displayId; _comPort = comPortHandler; _comPort.ReceivedPacket += ComPortOnReceivedPacket; AudioLevels = new AudioLevelCollection { this }; }
private void ComPortOnReceivedPacket(NecComPortHandler handler, byte[] receivedPacket) { SocketOnReceivedData(receivedPacket); }