private void LyncServiceConversationStarted(object sender, ConversationEventArgs e)
        {
            if (e.ContactInfo == null)
            {
                e.Conversation.End();
                return;
            }

            this.ShowConversationDialog(e.Conversation, e.ContactInfo, e.ConversationType);
        }
        private void LyncServiceConversationEnded(object sender, ConversationEventArgs e)
        {
            Dispatcher.BeginInvoke((Action)(() =>
            {
                if (this.currentConversationWindow != null && this.currentConversationWindow.IsLoaded)
                {
                    this.currentConversationWindow.Close();
                    MessageBox.Show("The other participant declined the conversation!");
                }
                else
                {
                    MessageBox.Show("Conversation ended!");
                }

                this.currentConversationWindow = null;
            }));
        }