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