X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;ds=sidebyside;f=src%2Fcec-config-gui%2Factions%2FUpdateEvent.cs;h=dae21bfc438439d024a819805821bfeedb626f8b;hb=66609663d93f48b37fa79647e339ab48a70f73d8;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..dae21bf 100644 --- a/src/cec-config-gui/actions/UpdateEvent.cs +++ b/src/cec-config-gui/actions/UpdateEvent.cs @@ -18,11 +18,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; @@ -60,6 +66,13 @@ namespace CecConfigGui { } + public void SendEvent(UpdateEventType type) + { + EventHandler temp = EventHandler; + if (temp != null) + temp(this, new UpdateEvent(type)); + } + public void SendEvent(UpdateEventType type, bool value) { EventHandler temp = EventHandler;