private bool UnreadMessageCheck(NewChatParticipant chatParticipant) { if (chatParticipant.GetNotReadedMessageCount() != 0) { return(true); } return(false); }
private void ChangeDialog() { NewChatParticipant chatParticipant = client.participants[selectedDialog]; if (UnreadMessageCheck(chatParticipant)) { chatParticipant.SetNotReadedMessageCountZero(); } currentChatLabel.Text = client.participants[selectedDialog].Name; List <Messages> newMessages = client.participants[selectedDialog].MessageHistory; RefreshChatTextBox(newMessages); }