Ejemplo n.º 1
0
 private IFamilyHandler CreateFamilyHandler(ExportFamily specificFamily)
 {
     switch (specificFamily)
     {
         case ExportFamily.None:
             return new DownloadFamilyHandler();
         case ExportFamily.Microsoft:
             return new MicrosoftFamilyHandler();
         case ExportFamily.Open:
             return new OpenOfficeFamilyHandler();
         case ExportFamily.Pdf:
             return new PdfFamilyHandler();
         default:
             throw new NotSupportedException(string.Format("Not supported export family {0}", specificFamily));
     }
 }
 public bool ShouldProcess(IFileBase file, ExportFamily family)
 {
     return file.IsExportable();
 }