Example #1
0
 /// <summary>
 /// Calls <paramref name="WriteSheetMethod"/> if current exporter settings have <paramref name="sheetFlag"/> flag
 /// </summary>
 /// <param name="sheetFlag"><see cref="ExportableData"/> flag specifying what exactly should be exported</param>
 /// <param name="WriteSheetMethod">Method to be called to write sheet</param>
 /// <param name="model"><see cref="Model"/> instance to be exported</param>
 /// <param name="targetPackage"><see cref="ExcelPackage"/> instance to write exported data to</param>
 private void TryWriteSheet(ExportableData sheetFlag, Action <Model, ExcelPackage> WriteSheetMethod, Model model, ExcelPackage targetPackage)
 {
     if (settings.ExportWhat.HasFlag(sheetFlag))
     {
         WriteSheetMethod(model, targetPackage);
     }
 }
 public ExcelExporterSettings()
 {
     FilePath   = defaultFilePath;
     ExportWhat = ExportableData.None;
 }
Example #3
0
 public TextResultExporterSettings()
 {
     FilePath   = defaultFilePath;
     ExportWhat = ExportableData.None;
 }