예제 #1
0
        public void View(User loggedUser, User realLoggedUser)
        {
            MessageForm viewMessageForm = new MessageForm(this, loggedUser, realLoggedUser);

            viewMessageForm.Open();

            if (ReceiverUserId == realLoggedUser.UserId)
            {
                UpdateAsRead();
            }
        }
예제 #2
0
        public void SendMessage(User toUser)
        {
            MessageForm viewMessageForm = new MessageForm(this, toUser);

            viewMessageForm.Open();
        }