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); } } }
private void button1_Click(object sender, EventArgs e) { PrintForm form = new PrintForm(id); form.Show(); }
private void printToolStripMenuItem_Click(object sender, EventArgs e) { PrintForm printForm = new PrintForm(); printForm.Show(); }
private void btnPrint_Click(object sender, EventArgs e) { PrintForm prt = new PrintForm(); prt.Show(); }