Exemple #1
0
        private void _parent_ConversationRemoved(object sender, ConversationRemovedEventArgs e)
        {
            ConversationModel conversation = _conversations.Find(obj => obj.Id == e.ConversationId);

            if (ConversationList.SelectedConversation.Id == e.ConversationId)
            {
                ConversationList.SelectedConversation = ConversationList.Conversations.First().Conversation;
            }

            ConversationList.RemoveConversationFromList(
                ConversationList.Conversations.Find(obj => obj.Conversation == conversation));
        }