private void HandleOldItems(IList oldItems) { foreach (object o in oldItems) { DocumentTracker documentTracker = new DocumentTracker(this.m_MongoServer); documentTracker.Register(o); documentTracker.Status = DocumentStatusEnum.Deleted; this.m_DocumentTrackerList.Add(documentTracker); } }
public DocumentCollectionTracker(YellowstonePathology.Business.ReportDistribution.Model.ReportDistributionLogEntryCollection collection, YellowstonePathology.Business.Mongo.Server mongoServer) { this.m_MongoServer = mongoServer; this.m_DocumentTrackerList = new List <DocumentTracker>(); foreach (INotifyPropertyChanged o in collection) { DocumentTracker documentTracker = new DocumentTracker(this.m_MongoServer); documentTracker.Register(o); this.m_DocumentTrackerList.Add(documentTracker); } collection.CollectionChanged += new System.Collections.Specialized.NotifyCollectionChangedEventHandler(CollectionChanged); }