X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;ds=inline;f=src%2Fcec-config-gui%2Factions%2FUpdateEvent.cs;h=dae21bfc438439d024a819805821bfeedb626f8b;hb=b113b95ac84c2dd99d82ecc7c8dfbc296209bf23;hp=b559764ec6ed10b60f5f5dec9b98dbd03477ff19;hpb=006b76b92c05b0f387575962b2851f2ba4a4b569;p=deb_libcec.git diff --git a/src/cec-config-gui/actions/UpdateEvent.cs b/src/cec-config-gui/actions/UpdateEvent.cs index b559764..dae21bf 100644 --- a/src/cec-config-gui/actions/UpdateEvent.cs +++ b/src/cec-config-gui/actions/UpdateEvent.cs @@ -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 temp = EventHandler; + if (temp != null) + temp(this, new UpdateEvent(type)); + } + public void SendEvent(UpdateEventType type, bool value) { EventHandler temp = EventHandler;