Example #1
0
 public IPrintDocument GetPrintDocument(PrintDocumentType documentType)
 {
     foreach (var factory in printDocuments)
     {
         if (factory.IsSameDocumentType(documentType))
         {
             return(factory);
         }
     }
     return(null);
 }
Example #2
0
 public abstract bool IsSameDocumentType(PrintDocumentType type);
 public override bool IsSameDocumentType(PrintDocumentType type)
 {
     return(type == PrintDocumentType.ExcelTemplate);
 }
Example #4
0
 /// <summary>
 /// Элемент документа
 /// </summary>
 /// <param name="type">Тип элемента</param>
 public DocumentParams(PrintDocumentType type)
 {
     Type = type;
 }