repositories
/
deb_libcec.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
cec-config-gui: ask the user whether he wants to try to reconnect when the connection...
[deb_libcec.git]
/
src
/
cec-config-gui
/
actions
/
UpdateEvent.cs
diff --git
a/src/cec-config-gui/actions/UpdateEvent.cs
b/src/cec-config-gui/actions/UpdateEvent.cs
index 6d19757121fe4d0abc522a3aebfb6512d0271151..dae21bfc438439d024a819805821bfeedb626f8b 100644
(file)
--- 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,
HasAVRDevice,
AVRVendorId,
Configuration,
- MenuLanguage
+ MenuLanguage,
+ PollDevices
}
public class UpdateEvent : EventArgs
{
}
public class UpdateEvent : EventArgs
{
+ public UpdateEvent(UpdateEventType type)
+ {
+ Type = type;
+ }
+
public UpdateEvent(UpdateEventType type, bool value)
{
Type = type;
public UpdateEvent(UpdateEventType type, bool value)
{
Type = type;
@@
-60,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;
public void SendEvent(UpdateEventType type, bool value)
{
EventHandler<UpdateEvent> temp = EventHandler;