private void LoadCollectionInLock() { if (!File.Exists(_CollectionFullPath)) { return; } var xmlDocument = new XmlDocument(); xmlDocument.Load(_CollectionFullPath); var bulkOrderDeeds = CollectionBulkOrderDeed.LoadFromXml(xmlDocument); _Collection.AddRange(bulkOrderDeeds); }
private bool ApplyCollectionFilterImpl(CollectionFilterParameters parameters, CollectionBulkOrderDeed bulkOrderDeed) { var retVal = true; foreach (var parameter in parameters.GetAppliedFilters()) { if (!parameter.ApplyFilter(bulkOrderDeed)) { retVal = false; break; } } return(retVal); }
public bool ApplyCollectionFilter(CollectionFilterParameters parameters, CollectionBulkOrderDeed bulkOrderDeed) { var parametersCopy = parameters.Clone(); return(ApplyCollectionFilterImpl(parametersCopy, bulkOrderDeed)); }