cec-config-gui: ask the user whether he wants to try to reconnect when the connection...
[deb_libcec.git] / src / cec-config-gui / actions / UpdateDeviceInfo.cs
CommitLineData
6d866874
LOK
1using System;
2using System.Collections.Generic;
3using System.Text;
4using CecSharp;
5
6namespace 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}