public DocumentsPrinterDlg(IUnitOfWork uow, RouteList routeList, RouteListPrintableDocuments selectedType) { this.Build(); TabName = "Печать документов МЛ"; entitiyDocumentsPrinter = new EntitiyDocumentsPrinter(uow, routeList, selectedType); currentRouteList = routeList; Configure(); }
public DocumentsPrinterDlg(Order order) { this.Build(); TabName = "Печать документов заказа"; entitiyDocumentsPrinter = new EntitiyDocumentsPrinter(order); if (!string.IsNullOrEmpty(entitiyDocumentsPrinter.ODTTemplateNotFoundMessages)) { MessageDialogHelper.RunWarningDialog(entitiyDocumentsPrinter.ODTTemplateNotFoundMessages); } currentOrder = order; Configure(); }