X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Fcec-config-gui%2Factions%2FUpdateEvent.cs;h=a7e2df6bbb2227e83aea53d9692f87dc1c517941;hb=9878069e35286a320bb01ef58a1cc2864856e54e;hp=6d19757121fe4d0abc522a3aebfb6512d0271151;hpb=f976869e75bd69e92e02d4a28c87403e2491da4d;p=deb_libcec.git diff --git a/src/cec-config-gui/actions/UpdateEvent.cs b/src/cec-config-gui/actions/UpdateEvent.cs index 6d19757..a7e2df6 100644 --- a/src/cec-config-gui/actions/UpdateEvent.cs +++ b/src/cec-config-gui/actions/UpdateEvent.cs @@ -1,6 +1,4 @@ using System; -using System.Collections.Generic; -using System.Text; using CecSharp; namespace CecConfigGui @@ -18,11 +16,17 @@ namespace CecConfigGui HasAVRDevice, AVRVendorId, Configuration, - MenuLanguage + MenuLanguage, + PollDevices } public class UpdateEvent : EventArgs { + public UpdateEvent(UpdateEventType type) + { + Type = type; + } + public UpdateEvent(UpdateEventType type, bool value) { Type = type; @@ -56,8 +60,11 @@ namespace CecConfigGui public abstract class UpdateProcess { - public UpdateProcess() + public void SendEvent(UpdateEventType type) { + EventHandler temp = EventHandler; + if (temp != null) + temp(this, new UpdateEvent(type)); } public void SendEvent(UpdateEventType type, bool value)