public void View(User loggedUser, User realLoggedUser) { MessageForm viewMessageForm = new MessageForm(this, loggedUser, realLoggedUser); viewMessageForm.Open(); if (ReceiverUserId == realLoggedUser.UserId) { UpdateAsRead(); } }
public void SendMessage(User toUser) { MessageForm viewMessageForm = new MessageForm(this, toUser); viewMessageForm.Open(); }