示例#1
0
        private SourceContainerDocument CreateNewDocument(FileClass fileClass)
        {
            var sourceContainerDocument = new SourceContainerDocument();

            sourceContainerDocument.SetSourceFileClass(fileClass);
            return(sourceContainerDocument);
        }
示例#2
0
 public void ReloadDocumentContent(SourceContainerDocument sourceContainerDocument, FileClass fileClass)
 {
     fileClass.Text      = ReadSourceFile(fileClass.FilePath);
     fileClass.TextState = ETextState.ReadNotChanged;
     fileClass.IsOpened  = true;
     sourceContainerDocument.SetSourceFileClass(fileClass);
 }