X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Fcec-config-gui%2Factions%2FShowDeviceInfo.cs;h=8e6a48de71cbb42b8e07648ce80c7d1181746e5b;hb=347f7adb71ac80290639a3764b598c94b828f3f4;hp=df8b4d144799e533b198e95c65ebc470af54d1f0;hpb=5b8c27619d881cf9f7f83123e8ded59b137d4e5d;p=deb_libcec.git diff --git a/src/cec-config-gui/actions/ShowDeviceInfo.cs b/src/cec-config-gui/actions/ShowDeviceInfo.cs index df8b4d1..8e6a48d 100644 --- a/src/cec-config-gui/actions/ShowDeviceInfo.cs +++ b/src/cec-config-gui/actions/ShowDeviceInfo.cs @@ -1,7 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Text; -using CecSharp; +using CecSharp; namespace CecConfigGui.actions { @@ -14,6 +11,14 @@ namespace CecConfigGui.actions Address = address; } + public virtual void ShowDialog(CecConfigGUI gui, CecLogicalAddress address, ref LibCecSharp lib, + bool devicePresent, CecVendorId vendor, bool isActiveSource, ushort physicalAddress, + CecVersion version, CecPowerStatus power, string osdName, string menuLanguage) + { + DeviceInformation di = new DeviceInformation(Gui, Address, ref Lib, devicePresent, vendor, isActiveSource, physicalAddress, version, power, osdName, menuLanguage); + Gui.DisplayDialog(di, false); + } + public override void Process() { CecVendorId vendor = CecVendorId.Unknown; @@ -63,8 +68,7 @@ namespace CecConfigGui.actions SendEvent(UpdateEventType.ProgressBar, 90); SendEvent(UpdateEventType.ProcessCompleted, true); - DeviceInformation di = new DeviceInformation(Gui, Address, ref Lib, devicePresent, vendor, isActiveSource, physicalAddress, version, power, osdName, menuLanguage); - Gui.DisplayDialog(di, false); + ShowDialog(Gui, Address, ref Lib, devicePresent, vendor, isActiveSource, physicalAddress, version, power, osdName, menuLanguage); SendEvent(UpdateEventType.StatusText, "Ready."); SendEvent(UpdateEventType.ProgressBar, 100);