typo
[deb_libcec.git] / src / cec-config-gui / actions / UpdateEvent.cs
index 6d19757121fe4d0abc522a3aebfb6512d0271151..4a3e701a9099c91fbaa46fc24128593fa8f14231 100644 (file)
@@ -1,6 +1,4 @@
 using System;
-using System.Collections.Generic;
-using System.Text;
 using CecSharp;
 
 namespace CecConfigGui
@@ -18,11 +16,18 @@ namespace CecConfigGui
     HasAVRDevice,
     AVRVendorId,
     Configuration,
-    MenuLanguage
+    MenuLanguage,
+    PollDevices,
+    ExitApplication
   }
 
   public class UpdateEvent : EventArgs
   {
+    public UpdateEvent(UpdateEventType type)
+    {
+      Type = type;
+    }
+
     public UpdateEvent(UpdateEventType type, bool value)
     {
       Type = type;
@@ -56,8 +61,11 @@ namespace CecConfigGui
 
   public abstract class UpdateProcess
   {
-    public UpdateProcess()
+      public void SendEvent(UpdateEventType type)
     {
+      EventHandler<UpdateEvent> temp = EventHandler;
+      if (temp != null)
+        temp(this, new UpdateEvent(type));
     }
 
     public void SendEvent(UpdateEventType type, bool value)