3cbde24d31ecf3da825378944eb38dfa14e05a8f
[deb_libcec.git] / src / cec-config-gui / actions / UpdateDeviceInfo.cs
1 using System;
2 using System.Collections.Generic;
3 using System.Text;
4 using CecSharp;
5
6 namespace CecConfigGui.actions
7 {
8 class UpdateDeviceInfo : ShowDeviceInfo
9 {
10 public UpdateDeviceInfo(CecConfigGUI gui, ref LibCecSharp lib, DeviceInformation dialog) :
11 base(gui, ref lib, dialog.Address)
12 {
13 Dialog = dialog;
14 }
15
16 public override void ShowDialog(CecConfigGUI gui, CecLogicalAddress address, ref LibCecSharp lib,
17 bool devicePresent, CecVendorId vendor, bool isActiveSource, ushort physicalAddress,
18 CecVersion version, CecPowerStatus power, string osdName, string menuLanguage)
19 {
20 Dialog.Update(devicePresent, vendor, isActiveSource, physicalAddress, version, power, osdName, menuLanguage);
21 }
22
23 private DeviceInformation Dialog;
24 }
25 }