private static IDataSource ManageCommonOptions(CDataSourceOptions options) { Log.Message($"[DicomFileLoader] Received common options, preferable type {options.PreferableType.Name}"); CAtomicPicts dummyPicts = GenerateDummyLoadedFiles(); if (options.PreferableType == typeof(DataTable)) { return(CFileLoadFilesReport.CreateFromAtomicPicts(dummyPicts)); } return(dummyPicts); }
private IDataSource ManageFileSLoaderOptions(CFileLoaderDataSourceOptions fileOptions) { Log.Message($"[DicomFileLoader] Received managed options. Is report required : {fileOptions.IsReport}, preferable type {fileOptions.PreferableType.Name} "); CAtomicPicts dummyPicts = GenerateDummyLoadedFiles(); if (fileOptions.IsReport) { return(CFileLoadFilesReport.CreateFromAtomicPicts(dummyPicts)); } return(dummyPicts); }