Пример #1
0
        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
            };
        }
Пример #2
0
 private void ComPortOnReceivedPacket(NecComPortHandler handler, byte[] receivedPacket)
 {
     SocketOnReceivedData(receivedPacket);
 }