/// <summary>Add the received message to the local messages model and raises event.</summary> /// <param name="newReceivedmessage"></param> public void AddReceivedPrivateMessage(PrivateMessageItem newReceivedmessage) { receivedMessages.Add(newReceivedmessage); if (ReceivedPrivateMessageEvent != null) { ReceivedPrivateMessageEvent(newReceivedmessage); } }
/// <summary> /// Add the sent message to the local messages model. /// NOTE! Doesn'transfer send the message to the server, just holds it for later referencing. /// </summary> /// <param name="newSentMessage"></param> public void AddSentPrivateMessage(PrivateMessageItem newSentMessage) { sentMessages.Add(newSentMessage); if (SentPrivateMessageEvent != null) { SentPrivateMessageEvent(newSentMessage); } }