using System;
-using System.Collections.Generic;
-using System.Text;
using CecSharp;
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;
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)