예제 #1
0
 public LastPrintVM(IReportsBussinessLogic reportsBussinessLogic,
                    ICacheBusinessLogic cacheBusinessLogic
                    )
 {
     _reportsBussinessLogic = reportsBussinessLogic;
     _cacheBusinessLogic    = cacheBusinessLogic;
     PrintReportCommand     = new RelayCommand(async() =>
     {
         await PerformPrint(ReportContent.Split('\n')?.ToList());
     });
 }
예제 #2
0
        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);
            });
        }