コード例 #1
0
        private void FireOperationComplete(Operation operation, bool withSuccess)
        {
            OperationCompleteHandler handler = OperationComplete;

            if (handler != null)
            {
                handler(this, operation, withSuccess);
            }
        }
コード例 #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));
 }
コード例 #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);
 }
コード例 #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);
 }
コード例 #5
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="handler">Initial handler to register</param>
 public OperationCompleteEvent(OperationCompleteHandler handler)
     : this(handler, null)
 {
 }
コード例 #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));
 }
コード例 #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);
 }
コード例 #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);
 }
コード例 #9
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="handler">Initial handler to register</param>
 public OperationCompleteEvent(OperationCompleteHandler handler)
     : this(handler, null)
 {
 }