private SourceContainerDocument CreateNewDocument(FileClass fileClass) { var sourceContainerDocument = new SourceContainerDocument(); sourceContainerDocument.SetSourceFileClass(fileClass); return(sourceContainerDocument); }
public void ReloadDocumentContent(SourceContainerDocument sourceContainerDocument, FileClass fileClass) { fileClass.Text = ReadSourceFile(fileClass.FilePath); fileClass.TextState = ETextState.ReadNotChanged; fileClass.IsOpened = true; sourceContainerDocument.SetSourceFileClass(fileClass); }