Пример #1
0
 public void Handle(DocumentDeleted message)
 {
     ActiveCollectionDocuments
     .Where(x => x.Id == message.DocumentId)
     .ToList()
     .Apply(x => ActiveCollectionDocuments.Remove(x));
 }
Пример #2
0
        void GetDocumentsForActiveCollection()
        {
            if (ActiveCollection == null)
            {
                return;
            }

            ActiveCollectionDocuments.GetTotalResults = () => ActiveCollection.Count;
            ActiveCollectionDocuments.LoadPage();
        }
Пример #3
0
        void IHandle <DocumentDeleted> .Handle(DocumentDeleted message)
        {
            ActiveCollectionDocuments
            .Where(x => x.Id == message.DocumentId)
            .ToList()
            .Apply(x => ActiveCollectionDocuments.Remove(x));

            ActiveCollection.Count -= 1;
            if (ActiveCollection.Count == 0)
            {
                Collections.Remove(ActiveCollection);
            }
        }
Пример #4
0
        void GetDocumentsForActiveCollection()
        {
            TrackCurrentCollection();

            ActiveCollectionDocuments.ClearResults();

            if (ActiveCollection == null)
            {
                return;
            }

            ActiveCollectionDocuments.GetTotalResults = () => ActiveCollection.Count;
            ActiveCollectionDocuments.LoadPage();
        }