Exemplo n.º 1
0
 private static void RemoveDocument(Document doc)
 {
     try
     {
         if (doc == null)
         {
             return;
         }
         DocumentDataObject documentDataObject = DocumentDataObject.DocData(doc);
         if (documentDataObject != null)
         {
             documentDataObject.Detach();
             documentDataObject.m_ThisDoc = null;
         }
     }
     catch
     {
     }
     DocumentDataObject.m_docMap.Remove(doc);
 }
 public static AfaDocData DocData(Document doc)
 {
     return(DocumentDataObject.DocData(doc) as AfaDocData);
 }