Ejemplo n.º 1
0
 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);
     }
 }
Ejemplo n.º 2
0
 public UpdateEventSubscription(NotifyEventCallback callback, UpdateEventType updateEventType)
 {
     this.callback        = callback;
     this.updateEventType = updateEventType;
 }
Ejemplo n.º 3
0
 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);
     }
 }
Ejemplo n.º 4
0
 public static void SubscribeNotifyEvent(UpdateEventType updateEventType, NotifyEventCallback callback)
 {
     updateEventSubscriptions.Add(new UpdateEventSubscription(callback, updateEventType));
 }