Exemple #1
0
        private void simpleButtonPrinter_Click(object sender, EventArgs e)
        {
            var sp = DevExpressHelper.GetSelectedRecord <SalePoint>(gridViewSalePoints);

            if (sp != null)
            {
                try
                {
                    var clientService = Protocol.CreateClientProxy(sp.IP);
                    PrintForm.Show(this, sp, clientService.GetSpooler());
                }
                catch (Exception ex)
                {
                    ErrorHelper.ShowError <ErrorForm>(null, ex);
                }
            }
        }
Exemple #2
0
        private void button1_Click(object sender, EventArgs e)
        {
            PrintForm form = new PrintForm(id);

            form.Show();
        }
Exemple #3
0
        private void printToolStripMenuItem_Click(object sender, EventArgs e)
        {
            PrintForm printForm = new PrintForm();

            printForm.Show();
        }
Exemple #4
0
        private void btnPrint_Click(object sender, EventArgs e)
        {
            PrintForm prt = new PrintForm();

            prt.Show();
        }