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