static void PrintToConsoleReportFromPipeline(CSequentialPipeline pipeline) { DataTable resultTable = pipeline.GetPipelineResult().TryGetAs <DataTable>(); String userFriendlyDataTableRepr = SDataTablePrinter.GetPrettyDataTable(resultTable); Console.WriteLine(userFriendlyDataTableRepr); }
static void PrintToConsoleReportFromDicomLoader() { CDicomFileLoader fileLoader = new CDicomFileLoader(); DataTable table = fileLoader.GetDataSource(CFileLoaderDataSourceOptions.CreateCommonReportOptions()) .TryGetAs <DataTable>(); String userFriendlyFileReport = SDataTablePrinter.GetPrettyDataTable(table); Console.WriteLine(userFriendlyFileReport); }