Exemple #1
0
        static void PrintToConsoleReportFromPipeline(CSequentialPipeline pipeline)
        {
            DataTable resultTable = pipeline.GetPipelineResult().TryGetAs <DataTable>();
            String    userFriendlyDataTableRepr = SDataTablePrinter.GetPrettyDataTable(resultTable);

            Console.WriteLine(userFriendlyDataTableRepr);
        }
Exemple #2
0
        static void PrintToConsoleReportFromDicomLoader()
        {
            CDicomFileLoader fileLoader = new CDicomFileLoader();
            DataTable        table      = fileLoader.GetDataSource(CFileLoaderDataSourceOptions.CreateCommonReportOptions())
                                          .TryGetAs <DataTable>();
            String userFriendlyFileReport = SDataTablePrinter.GetPrettyDataTable(table);

            Console.WriteLine(userFriendlyFileReport);
        }