Пример #1
0
        public static Document NewDocument(BaseDocumentHead head, BaseDocumentData data)
        {
            Document doc = new Document(head, data);

            doc.Read(null);
            return(doc);
        }
Пример #2
0
        public static Document ReadAllFrom(BaseDocumentHead head, BaseDocumentData data, string filePath)
        {
            Document doc = new Document(head, data);

            if (File.Exists(filePath))
            {
                doc.Read(filePath);
            }
            else
            {
                doc.Read(null);
            }
            return(doc);
        }
Пример #3
0
 protected abstract INode CreateRootNodeFromDataProcess(ReadArgs args, BaseDocumentHead head);
Пример #4
0
 public BaseDocumentNodeFactory(BaseDocumentHead head)
 {
     m_head = head;
 }
Пример #5
0
 protected Document(BaseDocumentHead head, BaseDocumentData data)
 {
     m_head = head;
     m_data = data;
 }