Ejemplo n.º 1
0
 /// <summary>
 /// Saves the given document to the file system
 /// </summary>
 /// <param name="path">Name of the output file</param>
 /// <param name="document">Document that should be saved</param>
 /// <returns>True if the document could be saved</returns>
 public virtual bool Save(string path, IPrintableDocument document)
 {
     return(_defaultFileWriter.WriteAllText(path, document.Print()));
 }
Ejemplo n.º 2
0
 /// <summary>
 /// <inheritdoc cref="IPrintableDocument.Print"/>
 /// </summary>
 /// <returns></returns>
 public string Print()
 {
     return(_outputDocument.Print());
 }