Ejemplo n.º 1
0
        public LgDisplay(string name, LgComPortHandler portHandler, uint displayId)
            : base(name)
        {
            _portHandler = portHandler;
            _portHandler.ReceivedData += OnReceivedData;
            _displayId = displayId;

            _audioLevel = new LgDisplayVolumeLevel(this)
            {
                ControlType = AudioLevelType.Source,
                Name        = "Display Volume"
            };
            _audioLevelCollection.Add(_audioLevel);

            _availableInputs = new ReadOnlyCollection <DisplayDeviceInput>(
                new List <DisplayDeviceInput>
            {
                DisplayDeviceInput.HDMI1,
                DisplayDeviceInput.HDMI2,
                DisplayDeviceInput.HDMI3,
                DisplayDeviceInput.HDMI4
            });
        }
Ejemplo n.º 2
0
        public LgDisplay(string name, string ipAddress, int port, uint displayId)
            : base(name)
        {
            _socket = new LgSocket(ipAddress, port);
            _socket.ReceivedData  += OnReceivedData;
            _socket.StatusChanged += SocketOnStatusChanged;
            _displayId             = displayId;

            _audioLevel = new LgDisplayVolumeLevel(this)
            {
                ControlType = AudioLevelType.Source,
                Name        = "Display Volume"
            };
            _audioLevelCollection.Add(_audioLevel);

            _availableInputs = new ReadOnlyCollection <DisplayDeviceInput>(
                new List <DisplayDeviceInput>
            {
                DisplayDeviceInput.HDMI1,
                DisplayDeviceInput.HDMI2,
                DisplayDeviceInput.HDMI3,
                DisplayDeviceInput.HDMI4
            });
        }