Exemplo n.º 1
0
        private void AddMessage(MessageListView listView, Member member, Message message)
        {
            Owner sender = this.currentUser;

            if (sender.ID != message.Sender)
            {
                sender = this.currentUser.Members[message.Sender];
            }
            if (IsMainMessage(this.currentUser, member, message))
            {
                MessageBody body = new MessageBody(message, sender, this.currentUser);
                foreach (MessageItem mitem in body.Items)
                {
                    listView.Items.Add(mitem);
                }
            }
        }
Exemplo n.º 2
0
 public MessageItem(MessageBody body, MessageItemType type, string text)
 {
     this.body = body;
     this.type = type;
     this.Text = text;
 }