Beispiel #1
0
        private void recepentA4Button_Click(object sender, EventArgs e)
        {
            DialogResult result = MessageDialog.Show("Print A4 Recepent!", "Are you want to print the A4 receipt now!", "print");

            if (result == DialogResult.Yes)
            {
                InvoiceReport_Frame recept = new InvoiceReport_Frame(this.inv);
                recept.Show();
            }
        }
Beispiel #2
0
 private void buttonPrint_Click(object sender, EventArgs e)
 {
     if (radioButtonA4.Checked)
     {
         InvoiceReport_Frame recept = new InvoiceReport_Frame(this.inv);
         recept.Show();
     }
     else
     {
         string printer = lstPrinterList.GetItemText(lstPrinterList.SelectedItem);
         if (printer != null && printer != "")
         {
             PosReceipt pos = new PosReceipt(this.inv, printer, this.received);
             pos.print();
         }
         else
         {
             MessageBox.Show("Slect A Printer");
         }
     }
 }