Example #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;
		}
Example #2
0
 public MyDsDocumentNode(MyDsDocument document)
     : base(document) => this.document = document;
Example #3
0
		public MyDsDocumentNode(MyDsDocument document)
			: base(document) {
			this.document = document;
		}
Example #4
0
		public MyDsDocumentNode(MyDsDocument document) {
			this.document = document;
		}