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); }
private void LoadChattingView(ChatListEntry item) { _navigationService.Navigate <ChattingViewModel, ChannelInfo>(item.Data); }