void ConversationManager_ConversationRemoved(object sender, ConversationManagerEventArgs e) { arduino.ClearCallerId(); if (lyncClient.State == ClientState.SignedIn) { int numOfConversations = lyncClient.ConversationManager.Conversations.Count; if (numOfConversations != 0) { Conversation lastConversation = lyncClient.ConversationManager.Conversations[numOfConversations - 1]; arduino.SetCallerId(lastConversation.Participants[1].Contact.GetContactInformation(ContactInformationType.DisplayName).ToString()); } } }