Exemplo n.º 1
0
 public void PrintTicketReciept(IEnumerable <Ticket> ticket, Bus bus, Tour tour)
 {
     using (crTicketReceipt report = new crTicketReceipt())
     {
         report.SetDataSource(TicketReportEntity.ConvertFromReportEntityList(ticket, bus, tour));
         PrintReceipt(report, 1);
     }
 }
Exemplo n.º 2
0
 public void PrintBusTickets(IEnumerable <Ticket> ticket, Bus bus, Tour tour)
 {
     using (crBusTicketList report = new crBusTicketList())
         using (ReportReviewer reviewer = new ReportReviewer())
         {
             report.SetDataSource(TicketReportEntity.ConvertFromReportEntityList(ticket, bus, tour));
             reviewer.ReportSource = report;
             reviewer.ShowDialog();
         }
 }