Exemplo n.º 1
0
        public void RemoveSelectedMessages()
        {
            List <Message> removeMessages = LocalMessages.Where(m => m.Selecting).ToList();

            removeMessages.ForEach(m => _db.Entry(m).State = EntityState.Deleted);
            _db.SaveChanges();
            GroupChat.RemoveMessages(groupChat.Messages, removeMessages);
            groupChat.UpdateChat(removeMessages);
        }
Exemplo n.º 2
0
 public void RemovedSelectedMessages(List <Message> removeMessages)
 {
     GroupChat.RemoveMessages(LocalMessages, removeMessages);
     //LocalMessages = Message.CopyMessages(groupChat.Messages);
 }