private void RefreshOrAddEntryInList(ChannelInfo newOrUpdatedChannel) { var index = ChatList.IndexOf(ChatList.First(a => a.Data.Equals(newOrUpdatedChannel))); index = (index == -1 ? 0 : index); ChatList[index] = new ChatListEntry(newOrUpdatedChannel); }