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); }
public MyDsDocumentNode(MyDsDocument document) : base(document) { this.document = document; }