static Stream GetDataFileCore(string name) { string filePath = #if !DXCORE3 DataFilesHelper.FindFile(name, DataFilesHelper.DataPath); #else name; #endif FileStream fileStream = new FileStream(filePath, FileMode.Open, FileAccess.Read); return(fileStream); }
public static List <ISchedulerReportTemplateInfo> GetReportTemplateCollection() { List <ISchedulerReportTemplateInfo> reportTemplateCollection = new List <ISchedulerReportTemplateInfo>(); string reportTemplatesDirectory = DataFilesHelper.FindFile("SchedulerReportTemplates", DataFilesHelper.DataPath); DirectoryInfo directoryInfo = new DirectoryInfo(reportTemplatesDirectory); foreach (FileInfo fileInfo in directoryInfo.GetFiles()) { reportTemplateCollection.Add(new SchedulerReportTemplateInfo(fileInfo.Name, fileInfo.FullName)); } return(reportTemplateCollection); }