2 using System.Collections.Generic;
3 using System.ComponentModel;
7 using System.Windows.Forms;
10 namespace CecConfigGui
12 public partial class DeviceInformation : Form
14 public DeviceInformation(CecLogicalAddress address, ref LibCecSharp lib,
15 bool devicePresent, CecVendorId vendor, bool isActiveSource, ushort physicalAddress,
16 CecVersion version, CecPowerStatus power, string osdName, string menuLanguage)
18 InitializeComponent();
19 this.lDevice.Text = lib.ToString(address);
20 this.lLogicalAddress.Text = "#" + (int)address;
21 this.lPhysicalAddress.Text = physicalAddress.ToString();
22 this.lDevicePresent.Text = devicePresent ? "yes" : "no";
23 this.lActiveSource.Text = isActiveSource ? "yes" : "no";
24 this.lVendor.Text = lib.ToString(vendor) + " (" + (UInt64)vendor +")";
25 this.lCecVersion.Text = lib.ToString(version);
26 this.lPowerStatus.Text = lib.ToString(power);
27 this.lOsdName.Text = osdName;
28 this.lMenuLanguage.Text = menuLanguage;