예제 #1
0
        /// <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);
            }
        }
예제 #2
0
        /// <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);
            }
        }