cec-config-gui: set cbPortNumber enabled when the physical address override isn't...
[deb_libcec.git] / src / cec-config-gui / actions / UpdateEvent.cs
index b559764ec6ed10b60f5f5dec9b98dbd03477ff19..dae21bfc438439d024a819805821bfeedb626f8b 100644 (file)
@@ -17,11 +17,18 @@ namespace CecConfigGui
     PhysicalAddress,
     HasAVRDevice,
     AVRVendorId,
-    Configuration
+    Configuration,
+    MenuLanguage,
+    PollDevices
   }
 
   public class UpdateEvent : EventArgs
   {
+    public UpdateEvent(UpdateEventType type)
+    {
+      Type = type;
+    }
+
     public UpdateEvent(UpdateEventType type, bool value)
     {
       Type = type;
@@ -59,6 +66,13 @@ namespace CecConfigGui
     {
     }
 
+    public void SendEvent(UpdateEventType type)
+    {
+      EventHandler<UpdateEvent> temp = EventHandler;
+      if (temp != null)
+        temp(this, new UpdateEvent(type));
+    }
+
     public void SendEvent(UpdateEventType type, bool value)
     {
       EventHandler<UpdateEvent> temp = EventHandler;