/// <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); } }
/// <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"); } }
/// <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; }
/// <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); } }