static void PackageChanged(FeatureEventArgs <OpenXmlPackage> arg) { if (arg.Type == EventType.Closed) { arg.Argument.Features.Dispose(); } }
private void PackageChangeEvent(FeatureEventArgs <OpenXmlPackage> obj) { if (obj.Type == EventType.Closing) { if (_shared.Remove(_collection)) { _shared.Add(new ParagraphIdCollectionFeature(_collection)); } } }