Exemple #1
0
        public void DeleteReceivedMessage(GameMailMessage message)
        {
            if (m_allMailMessages.Contains(message))
            {
                m_allMailMessages.Remove(message);
            }

            if (m_receivedMessages.Contains(message))
            {
                m_receivedMessages.Remove(message);
            }

            if (m_unreadMessages.Contains(message))
            {
                m_unreadMessages.Remove(message);
            }

            // typically before this method is called the owner of the message is told to remove the attachment first
            if (message.HasAttachment)
            {
                DeleteMailAttachment(message.MailItemAttachment);
            }

            DAL.DBMail.DeleteMailMessage(message.MailID); // will no longer show up in someone's sent messages...
        }
Exemple #2
0
        public void AddReceivedMessage(GameMailMessage message)
        {
            m_allMailMessages.Insert(0, message);
            m_receivedMessages.Insert(0, message);

            LoadUnreadMessagesAndMailAttachments();
        }
Exemple #3
0
 public void AddSentMessage(GameMailMessage message)
 {
     m_allMailMessages.Insert(0, message);
     m_sentMessages.Insert(0, message);
 }