private void btnPrintDebtors_Click(object sender, EventArgs e) { var printDialog = new PrintDialog(); printDialog.ShowDialog(); if (MyPrinter.Print) { MyPrinter.PrintRecords(dataGridDebtors, MyPrinter.GetPrintTile()); } }
private void btnPrintStock_Click(object sender, EventArgs e) { var printDialog = new PrintDialog(); printDialog.ShowDialog(); if (MyPrinter.Print) { MyPrinter.PrintRecordsPortrate(dataGridItmes, MyPrinter.GetPrintTile()); } }
private void btnPrintSaleRecord_Click(object sender, EventArgs e) { var printDialog = new PrintDialog(); printDialog.ShowDialog(); if (MyPrinter.Print) { MyPrinter.PrintRecords(dataGridNamesSalesRecord, MyPrinter.GetPrintTile()); } }
private void btnPrintEventscleared_Click(object sender, EventArgs e) { var printDialog = new PrintDialog(); printDialog.ShowDialog(); if (MyPrinter.Print) { MyPrinter.PrintRecords(dataGridPayment, MyPrinter.GetPrintTile()); } }
private void btnPrintEventDebtors_Click(object sender, EventArgs e) { // var myPrintTitle = "Other Fees Debtors List"; var printDialog = new PrintDialog(); printDialog.ShowDialog(); if (MyPrinter.Print) { MyPrinter.PrintRecords(dataGridEventPayment, MyPrinter.GetPrintTile()); } }
private void btnPrintCleared_Click(object sender, EventArgs e) { ///var myPrintTitle = "Completed Payment List"; var printDialog = new PrintDialog(); printDialog.ShowDialog(); if (MyPrinter.Print) { MyPrinter.PrintRecordsPortrate(dataGridPayment, MyPrinter.GetPrintTile()); } }
private void btnPrint_Click(object sender, EventArgs e) { try { lblTotal.Visible = false; checkTotal.Checked = false; var printDialog = new PrintDialog(); printDialog.ShowDialog(); if (MyPrinter.Print) { MyPrinter.PrintRecords(dataGridViewRecords, MyPrinter.GetPrintTile()); } }catch (Exception) { MessageBox.Show("something went wrong, please try again", "Cash Desk", MessageBoxButtons.OK, MessageBoxIcon.Information); } }
private void btnOk_Click(object sender, EventArgs e) { if (string.IsNullOrEmpty(txtPrintTitle.Text)) { if (MessageBox.Show("No Page Title provided\nContinue ?", "Confirm", MessageBoxButtons.YesNo, MessageBoxIcon.Information) == DialogResult.Yes) { MyPrinter.SetPrintTitle(txtPrintTitle.Text); MyPrinter.Print = true; this.Close(); } } else { MyPrinter.SetPrintTitle(txtPrintTitle.Text); MyPrinter.Print = true; this.Close(); } }