6 public enum UpdateEventType
12 BaseDevicePhysicalAddress,
24 public class UpdateEvent : EventArgs
26 public UpdateEvent(UpdateEventType type)
31 public UpdateEvent(UpdateEventType type, bool value)
37 public UpdateEvent(UpdateEventType type, int value)
43 public UpdateEvent(UpdateEventType type, string value)
49 public UpdateEvent(LibCECConfiguration config)
51 Type = UpdateEventType.Configuration;
55 public UpdateEventType Type;
56 public bool BoolValue = false;
57 public int IntValue = -1;
58 public string StringValue = String.Empty;
59 public LibCECConfiguration ConfigValue = null;
62 public abstract class UpdateProcess
64 public void SendEvent(UpdateEventType type)
66 EventHandler<UpdateEvent> temp = EventHandler;
68 temp(this, new UpdateEvent(type));
71 public void SendEvent(UpdateEventType type, bool value)
73 EventHandler<UpdateEvent> temp = EventHandler;
75 temp(this, new UpdateEvent(type, value));
78 public void SendEvent(UpdateEventType type, int value)
80 EventHandler<UpdateEvent> temp = EventHandler;
82 temp(this, new UpdateEvent(type, value));
85 public void SendEvent(UpdateEventType type, string value)
87 EventHandler<UpdateEvent> temp = EventHandler;
89 temp(this, new UpdateEvent(type, value));
92 public void SendEvent(LibCECConfiguration config)
94 EventHandler<UpdateEvent> temp = EventHandler;
96 temp(this, new UpdateEvent(config));
102 SendEvent(UpdateEventType.ProcessCompleted, true);
105 public abstract void Process();
106 public event EventHandler<UpdateEvent> EventHandler;