private void InitializeCallbacks() { if (eventCallbacks == null) { eventCallbacks = new Delegate[6]; eventCallbacks[0] = new NotifyEventCallback(this.NotifyEvent); eventCallbacks[1] = new BeginChildrenCallback(this.BeginChildren); eventCallbacks[2] = new EndChildrenCallback(this.EndChildren); eventCallbacks[3] = new ErrorCallback(this.Error); eventCallbacks[4] = new CreateNodeCallback(this.CreateNode); eventCallbacks[5] = new CreateAttributeCallback(this.CreateAttribute); } }
public UpdateEventSubscription(NotifyEventCallback callback, UpdateEventType updateEventType) { this.callback = callback; this.updateEventType = updateEventType; }
public static void SubscribeNotifyEvent(UpdateEventType updateEventType, NotifyEventCallback callback) { updateEventSubscriptions.Add(new UpdateEventSubscription(callback, updateEventType)); }