-using System;
-using System.Collections.Generic;
-using System.Text;
-using CecSharp;
+using CecSharp;
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;
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);