Ejemplo n.º 1
0
        private void FireOperationComplete(Operation operation, bool withSuccess)
        {
            OperationCompleteHandler handler = OperationComplete;

            if (handler != null)
            {
                handler(this, operation, withSuccess);
            }
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Register a delegate to be executed when Execute() is called.
 /// Methods are executed first in last out.
 /// </summary>
 /// <param name="handler"></param>
 /// <param name="tag">Object to pass to handler when executed</param>
 public void RegisterEvent(OperationCompleteHandler handler, object tag)
 {
     registeredEvents.Push(new Pair(handler, tag));
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Register a delegate to be executed when Execute() is called.
 /// Methods are executed first in last out.
 /// </summary>
 /// <param name="handler"></param>
 public void RegisterEvent(OperationCompleteHandler handler)
 {
     RegisterEvent(handler, null);
 }
Ejemplo n.º 4
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="handler">Initial handler to register</param>
 /// <param name="tag">Object to pass to handler when executed</param>
 public OperationCompleteEvent(OperationCompleteHandler handler, object tag)
 {
     RegisterEvent(handler, tag);
 }
Ejemplo n.º 5
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="handler">Initial handler to register</param>
 public OperationCompleteEvent(OperationCompleteHandler handler)
     : this(handler, null)
 {
 }
Ejemplo n.º 6
0
 /// <summary>
 /// Register a delegate to be executed when Execute() is called.
 /// Methods are executed first in last out.
 /// </summary>
 /// <param name="handler"></param>
 /// <param name="tag">Object to pass to handler when executed</param>
 public void RegisterEvent(OperationCompleteHandler handler, object tag)
 {
     registeredEvents.Push(new Pair(handler, tag));
 }
Ejemplo n.º 7
0
 /// <summary>
 /// Register a delegate to be executed when Execute() is called.
 /// Methods are executed first in last out.
 /// </summary>
 /// <param name="handler"></param>
 public void RegisterEvent(OperationCompleteHandler handler)
 {
     RegisterEvent(handler, null);
 }
Ejemplo n.º 8
0
 /// <summary>
 /// 
 /// </summary>
 /// <param name="handler">Initial handler to register</param>
 /// <param name="tag">Object to pass to handler when executed</param>
 public OperationCompleteEvent(OperationCompleteHandler handler, object tag)
 {
     RegisterEvent(handler, tag);
 }
Ejemplo n.º 9
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="handler">Initial handler to register</param>
 public OperationCompleteEvent(OperationCompleteHandler handler)
     : this(handler, null)
 {
 }