X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Fcec-config-gui%2Factions%2FShowDeviceInfo.cs;h=8e6a48de71cbb42b8e07648ce80c7d1181746e5b;hb=9465b147bebb736351f32e92413a0eb0302028bc;hp=a09b3905aa5cdb82d9c284a3a1fcfb4cb33c7e37;hpb=ece1582ec85912aebc8f87c0dca015ae62b29331;p=deb_libcec.git diff --git a/src/cec-config-gui/actions/ShowDeviceInfo.cs b/src/cec-config-gui/actions/ShowDeviceInfo.cs index a09b390..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); - di.ShowDialog(); + ShowDialog(Gui, Address, ref Lib, devicePresent, vendor, isActiveSource, physicalAddress, version, power, osdName, menuLanguage); SendEvent(UpdateEventType.StatusText, "Ready."); SendEvent(UpdateEventType.ProgressBar, 100);