6 public enum UpdateEventType
12 BaseDevicePhysicalAddress,
23 public class UpdateEvent : EventArgs
25 public UpdateEvent(UpdateEventType type)
30 public UpdateEvent(UpdateEventType type, bool value)
36 public UpdateEvent(UpdateEventType type, int value)
42 public UpdateEvent(UpdateEventType type, string value)
48 public UpdateEvent(LibCECConfiguration config)
50 Type = UpdateEventType.Configuration;
54 public UpdateEventType Type;
55 public bool BoolValue = false;
56 public int IntValue = -1;
57 public string StringValue = String.Empty;
58 public LibCECConfiguration ConfigValue = null;
61 public abstract class UpdateProcess
63 public void SendEvent(UpdateEventType type)
65 EventHandler<UpdateEvent> temp = EventHandler;
67 temp(this, new UpdateEvent(type));
70 public void SendEvent(UpdateEventType type, bool value)
72 EventHandler<UpdateEvent> temp = EventHandler;
74 temp(this, new UpdateEvent(type, value));
77 public void SendEvent(UpdateEventType type, int value)
79 EventHandler<UpdateEvent> temp = EventHandler;
81 temp(this, new UpdateEvent(type, value));
84 public void SendEvent(UpdateEventType type, string value)
86 EventHandler<UpdateEvent> temp = EventHandler;
88 temp(this, new UpdateEvent(type, value));
91 public void SendEvent(LibCECConfiguration config)
93 EventHandler<UpdateEvent> temp = EventHandler;
95 temp(this, new UpdateEvent(config));
101 SendEvent(UpdateEventType.ProcessCompleted, true);
104 public abstract void Process();
105 public event EventHandler<UpdateEvent> EventHandler;