private void txtPrint_Click(object sender, EventArgs e)
 {
     Printer printer = new Printer();
     printer.Print(GetMoneyLines());
 }
 private void btnPrintMoney_Click(object sender, EventArgs e)
 {
     try
     {
         Printer printer = new Printer();
         var lines =PrintHelper.GetMoneyLines(GetTicket(),GetYiFuList());
         printer.Print(lines, false);
     }
     catch
     {
         MessageBox.Show("操作失败!");
     }
 }
 private void btnPreMoney_Click(object sender, EventArgs e)
 {
     Printer printer = new Printer();
     var lines = PrintHelper.GetMoneyLines(GetTicket(), GetYiFuList());
     printer.PreView(lines, false);
 }
 private void btnPreView_Click(object sender, EventArgs e)
 {
     Printer printer = new Printer();
     var temp_ticket=GetTicket();
     var temp_YiFuList=GetYiFuList();
     var lines = PrintHelper.GetTicketLines(temp_ticket, temp_YiFuList);
     printer.PreView(lines);
 }
Beispiel #5
0
 private void btnPrint_Click(object sender, EventArgs e)
 {
     Printer print = new Printer();
     print.Print(GetMoneyLines(), false);
 }