コード例 #1
0
        /// <summary>
        /// Execute all registered delegates and report either success or failure of the
        /// operation.
        /// </summary>
        /// <param name="args"></param>
        public void Execute(OperationCompleteArgs args)
        {
            int count = registeredEvents.Count;

            for (int i = 0; i < count; ++i)
            {
                Pair pair = (Pair)registeredEvents.Pop();
                ((OperationCompleteHandler)pair.First)(args, pair.Second);
            }
        }
コード例 #2
0
 /// <summary>
 /// 
 /// </summary>
 /// <param name="args"></param>
 /// <param name="tag"></param>
 private void OnSayAcknowledged(OperationCompleteArgs args, object tag)
 {
     if (!args.Success)
     {
         this.WriteEventToConvoBox("Message could not be sent");
     }
 }
コード例 #3
0
 /// <summary>
 /// 
 /// </summary>
 /// <param name="args"></param>
 /// <param name="tag"></param>
 private void OnConnectionComplete(OperationCompleteArgs args, object tag)
 {
     if (args.Success)
     {
         // if the user typed anything in whilst we were connecting, flush it all out
         this.conversationConnected = true;
         this.FlushTextQueue();
         this.conversationServer.OnConnected();
     }
     this.connectionInProgress = false;
 }
コード例 #4
0
        /// <summary>
        /// Execute all registered delegates and report either success or failure of the
        /// operation.
        /// </summary>
        /// <param name="args"></param>
        public void Execute(OperationCompleteArgs args)
        {
            int count = registeredEvents.Count;

            for (int i=0; i<count; ++i)
            {
                Pair pair = (Pair)registeredEvents.Pop();
                ((OperationCompleteHandler)pair.First)(args, pair.Second);
            }
        }