Example #1
0
 private bool UnreadMessageCheck(NewChatParticipant chatParticipant)
 {
     if (chatParticipant.GetNotReadedMessageCount() != 0)
     {
         return(true);
     }
     return(false);
 }
Example #2
0
        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);
        }