Beispiel #1
0
        void OnFingerItemActivated(object sender, EventArgs e)
        {
            Trace.Call(sender, e);

            foreach (PersonModel target in Targets)
            {
                ProtocolManager.CommandFinger(
                    new CommandModel(
                        Frontend.FrontendManager,
                        ChatViewManager.ActiveChat.ChatModel,
                        target.ID
                        )
                    );
            }
        }
Beispiel #2
0
        void OnFingerItemActivated(object sender, EventArgs e)
        {
            Trace.Call(sender, e);

            foreach (PersonModel target in Targets)
            {
                var targetId = target.ID;
                ThreadPool.QueueUserWorkItem(delegate {
                    try {
                        ProtocolManager.CommandFinger(
                            new CommandModel(
                                Frontend.FrontendManager,
                                ChatViewManager.ActiveChat.ChatModel,
                                targetId
                                )
                            );
                    } catch (Exception ex) {
                        Frontend.ShowException(ex);
                    }
                });
            }
        }