private void PrintQuotation() { if (SelectedQuotation != null) { IPrintableWindowService printQuotationView = _windowFactory.GetWindowService(WindowType.PrintQuotationView) as IPrintableWindowService; printQuotationView.Open(new PrintQuotationViewModel(printQuotationView.Close, SelectedQuotation, printQuotationView)); } }
public PrintQuotationViewModel(Action onClose, QuotationViewModel quotation, IPrintableWindowService printer) : base(onClose) { Quotation = quotation; _printer = printer; PrintPDFCommand = new RelayCommand(o => _printer.PrintPDFDocument(), o => true); }