public override void CacheAttached(PXCache sender) { base.CacheAttached(sender); sender.Graph.RowPersisting.AddHandler(sender.GetItemType(), RowPersisting); if (PeriodKeyProvider != null) { HashSet <PXCache> subscribedCaches = new HashSet <PXCache>(); foreach (CalendarOrganizationIDProvider.SourceSpecificationItem sourceSpecification in PeriodKeyProvider.GetSourceSpecificationItems(sender, null)) { SubscribeForSourceSpecificationItem(sender, subscribedCaches, sourceSpecification); } } }