Exemple #1
0
 public IDsDocument Create(IDsDocumentService documentService, DsDocumentInfo documentInfo)
 {
     if (documentInfo.Type == MyDsDocument.THE_GUID)
     {
         return(MyDsDocument.TryCreate(documentInfo.Name));
     }
     // Also check for normal files
     if (documentInfo.Type == DocumentConstants.DOCUMENTTYPE_FILE && IsSupportedFile(documentInfo.Name))
     {
         return(MyDsDocument.TryCreate(documentInfo.Name));
     }
     return(null);
 }
Exemple #2
0
 public MyDsDocumentNode(MyDsDocument document)
 {
     this.document = document;
 }