private static void Convert(Importer importer, string inputFile, string outputFile) { Transactions transactions = importer.ImportTransations(inputFile); //IOutput output = new ConsoleOutput(); using (FileOutput output = new FileOutput(outputFile)) { TabbedOutput tabbedOutput = new TabbedOutput(output); transactions.ExportTabbedTo(tabbedOutput); } }
public void ExportTabbedTo(TabbedOutput output) { foreach (string prefix in GetPrefixes()) { output.WriteLine(prefix); output.Tab(); } foreach (IExportable child in GetChildren()) { child.ExportTabbedTo(output); } foreach (string suffix in GetSuffixes()) { output.UnTab(); output.WriteLine(suffix); } }
public void ExportTabbedTo(TabbedOutput output) { ExportTo(output); }