public void UpdateEventCollectionPolicy(List <StackHashCollectionPolicy> policies) { if (policies == null) { throw new ArgumentNullException("policies"); } DisplayCollectionPolicy currentEventCollectionPolicy = DisplayCollectionPolicy.FindPolicy(policies, this.Id, -1, -1, -1, StackHashCollectionObject.Cab, StackHashCollectionObject.Event); if (currentEventCollectionPolicy != _eventCollectionPolicy) { if (_eventCollectionPolicy == null) { _eventCollectionPolicy = currentEventCollectionPolicy; } else { _eventCollectionPolicy.UpdateCollectionPolicy(currentEventCollectionPolicy.StackHashCollectionPolicy); } RaisePropertyChanged("EventCollectionPolicy"); } UpdateDisplayFilter(); }
public void UpdateCabCollectionPolicy(List <StackHashCollectionPolicy> policies) { if (policies == null) { throw new ArgumentNullException("policies"); } DisplayCollectionPolicy currentCabCollectionPolicy = DisplayCollectionPolicy.FindPolicy(policies, this.ProductId, this.FileId, this.Id, -1, StackHashCollectionObject.Cab, StackHashCollectionObject.Cab); if (currentCabCollectionPolicy != _cabCollectionPolicy) { if (_cabCollectionPolicy == null) { _cabCollectionPolicy = currentCabCollectionPolicy; } else { _cabCollectionPolicy.UpdateCollectionPolicy(currentCabCollectionPolicy.StackHashCollectionPolicy); } RaisePropertyChanged("CabCollectionPolicy"); } }