public LastPrintVM(IReportsBussinessLogic reportsBussinessLogic, ICacheBusinessLogic cacheBusinessLogic ) { _reportsBussinessLogic = reportsBussinessLogic; _cacheBusinessLogic = cacheBusinessLogic; PrintReportCommand = new RelayCommand(async() => { await PerformPrint(ReportContent.Split('\n')?.ToList()); }); }
private void InitializeCommands() { SearchBySaleNumberCommand = new RelayCommand <object>(SearchBySaleNumber); PrintReportCommand = new RelayCommand(async() => { await PerformPrint(ReportContent.Split('\n').ToList()); }); TenderDetailsCommand = new RelayCommand(async() => { await PerformPrint(_localListOfReports); }); }