X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Fcec-config-gui%2Factions%2FShowDeviceInfo.cs;h=628d4a9829a44d24faa3b4dcff8804b83976650e;hb=b113b95ac84c2dd99d82ecc7c8dfbc296209bf23;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..628d4a9 100644 --- a/src/cec-config-gui/actions/ShowDeviceInfo.cs +++ b/src/cec-config-gui/actions/ShowDeviceInfo.cs @@ -14,6 +14,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 +71,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);